ArcGIS Linux runs arcpy using wine [1]. Python is a simple wrapper in bash.
Step by step guide
- /arcgis/server/tools/python
Python3 via Wine cmd
See [2] for running conda like Windows environment.
- $. /arcgis/server/framework/etc/arcenv
- $wine cmd
- cd c:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\Scripts
- conda create --clone arcgispro-py3 --prefix "Z:\home\arcgis\bin\Python\envs\test"
- proswap Z:\home\arcgis\bin\Python\envs\test
- conda install pyarrow
- This will install packages under Z:\home\arcgis\bin\Python\envs\test
- Run python and test import.
Python3 via Wine only
- Set up path for wine.
- Execute python3 under wine.
- Alternatively, you can run python in custom environment.
Note: ArcGIS Python doesn't include GDAL but it has many APIs [3].