AnsweredAssumed Answered

env() reference

Question asked by YvesAllaire on Feb 5, 2020
Latest reply on Feb 11, 2020 by bixb0012

Hi, I'm trying to use Pycharm, as IDE for python, but it seemd that the function arcpy.env is missing from __init_.PY...

 

I'm using C:\Python27\ArcGISx6410.5 interpreter.

 

 

When I try to run it inside PyCharm I get :

C:\Python27\ArcGISx6410.5\python.exe U:/Prog/PYScript/Geosoft2ArcGIS.py
Traceback (most recent call last):
File "U:/Prog/PYScript/Geosoft2ArcGIS.py", line 12, in <module>
import arcpy
File "c:\arcgis\desktop10.7\ArcPy\arcpy\__init__.py", line 22, in <module>
from arcpy.geoprocessing import gp
ImportError: cannot import name gp

Outcomes