AnsweredAssumed Answered

How to make python calls to arcgis.gis and pandas work outside jupyter?

Question asked by yguan16 on Jul 19, 2018
Latest reply on Jul 20, 2018 by Dan_Patterson

My python scripts that call ArcGIS.gis and pandas module work fine in jupyter notebook. But failed when running as a standalone py file.  I used the same commands (see below) to setup the environment before launching jupyter notebook or the py file. Anything I missed for running the py file standalone?

 

set PATH=C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3;C:\Program Files\ArcGIS\Pro\bin\Python\Scripts;C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Scripts;%PATH%
set PYTHONPATH=C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages;%PYTHONPATH%

Outcomes