I have installed ArcGIS Pro 2.0 which runs Python 3.5.3. I am trying to get started with the Arcpy library using the IDE PyCharm. I started a new project and pointed to the python file of the ArcGIS Pro installation (interpreter):
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe
Then I tried to execute the following two lines of code:
from arcpy import env
arcpy.env.workspace = "C:/Users/me"
And I get an error:
from arcpy import env
ImportError: cannot import name 'env'
I tried as well with different modules from arcpy but they all return the same error; meaning that they can not import each module.
Then I tried to run the same lines of code through the Python Console embedded in PyCharm and it works.
What am I missing here?