I'm trying to set up PyCharm to work with the Python environment (Python 3.9.13) installed with ArcGIS Pro 3.0 on a new computer (Win 11). I've tried cloning the environment both from within ArcGIS and from the Anaconda prompt. I've activated the clone in ArcGIS, and it works as it should in there. However, when I try to use the environment in PyCharm (or elsewhere outside of ArcGIS), I can´t import the arcpy module.
C:\Users\EmanuelVogel\anaconda3\envs\Pro_ENV\python.exe C:/GIS/PyCharm_Projects/test.py
Traceback (most recent call last):
File "C:\GIS\PyCharm_Projects\test.py", line 1, in <module>
import arcpy as ap
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\__init__.py", line 77, in <module>
from arcpy.geoprocessing import gp
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\__init__.py", line 14, in <module>
from ._base import *
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 14, in <module>
import arcgisscripting
File "C:\Users\EmanuelVogel\anaconda3\envs\Pro_ENV\lib\site-packages\arcgisscripting\__init__.py", line 131, in <module>
from ._arcgisscripting import *
ImportError: DLL load failed while importing _arcgisscripting: Det går inte att hitta den angivna modulen.
Process finished with exit code 1
I can import and work with other modules such as numpy. What could be the reason for this? I´ve already checked Importing ArcPy installed with ArcGIS Pro in PyCharm but can´t really make sense of it.