You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 11
Next »
ArcGIS Linux runs arcpy using wine [1]. Python is a simple wrapper in bash.
Step-by-step guide
/arcgis/server/tools/python
>>import arcpy, os
>> sdList = os.listdir('c:/')
>> print sdList
['Program Files', 'Program Files (x86)', 'ProgramData', 'Python27', 'users', 'windows
Python3 via Wine cmd
See [2] for running conda like Windows environment.
- $wine cmd
- cd c:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\Scripts
- conda
Python3 via wine only
- $wine ./server/framework/runtime/ArcGIS/bin/Python/envs/arcgispro-py3/python.exe
- $wine ./server/framework/runtime/ArcGIS/bin/Python/Scripts/conda.exe
References
- https://www.linux.org/threads/running-windows-batch-files-on-linux.11205/
- https://enterprise.arcgis.com/en/server/latest/publish-services/windows/deploying-custom-python-packages.htm
Related articles