First make sure you are using the correct conda environment. If the default 
install has everything run in that, otherswise clone it and run there. This can 
be done in ArcGIS Pro’s settings or using the ArcGIS Python command window. I 
make a clone (arcgispro-py3-clone), issue conda activate arcgispro-py3-clone, 
and then run the script there.

As long as you are signed into ArcGIS Online in ArcGIS Pro, the python tools 
should authenticate and get a license for you. If you want to make sure, use 
the 
CheckExtension<https://doc.esri.com/en/arcgis-pro/latest/arcpy/functions/checkextension.html>
 function to evaluate whether you are licensed for a particular extension, and 
use the 
CheckProduct<https://doc.esri.com/en/arcgis-pro/latest/arcpy/functions/checkproduct.html>
 function to evaluate whether you are licensed for a particular product level.

-Luke

From: Uw-gis-l <[email protected]> On Behalf Of Phil 
Hurvitz via Uw-gis-l
Sent: Monday, October 19, 2026 9:09 AM
To: [email protected]
Subject: [UW-GIS-L] Python in ArcGIS Pro: authentication for network analysis


Hi UW GIS community,

I finally get to ask a question! This is the first of what might be several 
questions to you.

Does anyone have any pointers on running a Python script to run an ODMatrix 
analysis? The answer to this question is not necessarily related to the 
specific analysis I'm trying to run.

I have a script that is saved as a .py file and the instructions I'm reading 
(https://doc.esri.com/en/arcgis-pro/latest/arcpy/get-started/using-conda-with-arcgis-pro.html<https://urldefense.com/v3/__https:/doc.esri.com/en/arcgis-pro/latest/arcpy/get-started/using-conda-with-arcgis-pro.html__;!!K-Hz7m0Vt54!l7wULKr18CaW82SXk7TgZmi3WY44iBra4V3cOyHGyjGxydyFa_IU-HOR04F6fbdXqUO-F7z1SWNu--UPcqQdH3AUONbAy8m8$>)
 show to run as e.g.,

c:\Progra~1\ArcGIS\Pro\bin\Python\scripts\propy.bat<file:///c:/Progra~1/ArcGIS/Pro/bin/Python/scripts/propy.bat>
 my_script.py

If I run this in a Windows CMD I assume Windows has no idea about my identity 
as far as Esri is concerned. Therefore it won't check out a Network Analysis 
extension license. How do I let the Python engine to pass on authentication to 
the ArcGIS Pro engine?

Thanks for any assistance.
--
________________________________
Phil Hurvitz [email protected]<mailto:[email protected]>
________________________________
_______________________________________________
Uw-gis-l mailing list
[email protected]
http://mailman23.u.washington.edu/mailman/listinfo/uw-gis-l

Reply via email to