I need to import a custom Python module (pyinaturalist) in ArcGIS Pro.
I created a copy of the base Python environment in the Conda Manager within ArcGIS Pro, but I did not find the module I need in the list of available modules.
I tried the suggestions on this site; however,
myPythonModules = r"C:\Users\Manuel\Python\lib\site-packages\pyinaturalist"
sys.path.append(myPythonModules)
import pyinaturalist
just produced to this error:
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
In [3]:
Line 3: import pyinaturalist
ModuleNotFoundError: No module named 'pyinaturalist'
--------------------------------------------------------------------------
the other suggestion, to add the line
import sys; sys.path.append(r"C:\Users\Manuel\Python\lib\site-packages\pyinaturalist")
to Program Files > ArcGIS > Pro > bin > Python > envs > arcgispro-py3 > Lib > site-packages > ArcGISPro.pth
was also not working.
So how can I import custom modules and use them in ArcGIS Pro?