ArcGIS Linux runs arcpy using wine [1]. Python is a simple wrapper in bash.
/arcgis/server/tools/python
>>import arcpy, os >> sdList = os.listdir('c:/') >> print sdList ['Program Files', 'Program Files (x86)', 'ProgramData', 'Python27', 'users', 'windows
See [2] for running conda like Windows environment.
conda install pyarrow
Run python and test import.
Z:\home\arcgis\bin\Python\envs\test>python python Python 3.6.8 |Anaconda, Inc.| (default, Feb 21 2019, 18:30:04) [MSC v.1916 64 bit (\ AMD64)] on win32 Warning: This Python interpreter is in a conda environment, but the environment has not been activated. Libraries may fail to load. To activate this environment please see https://conda.io/activation Type "help", "copyright", "credits" or "license" for more information. >>> import pyarrow
Set up path for wine.
$. /arcgis/server/framework/etc/arcenv
Execute python3 under wine.
$wine /arcgis/server/framework/runtime/ArcGIS/bin/Python/envs/arcgispro-py3/python.exe
Alternatively, you can run python in custom environment.
$wine /home/arcgis/bin/Python/envs/test/python.exe