SHARE
TWEET

Untitled

a guest Nov 15th, 2017 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. >>import arcpy
  2.  
  3. arcpy must be run from inside the Conda environment, which ArcGIS
  4. uses to manage the installation of Python.
  5. You can access this environment by launching Python from the links inside the
  6. "ArcGIS > ArcGIS Pro" Start Menu Group:
  7.     "Python Interactive Terminal" starts a Python session.
  8.     "Python Command Prompt" opens a Command Prompt window initialized with Conda.
  9.  
  10. Or by running the proenv.bat file in the terminal:
  11.      C:> C:Program FilesArcGISProbinpythonscriptsproenv.bat
  12.  
  13.  
  14.  
  15.  
  16.  
  17. ---------------------------------------------------------------------------
  18. ImportError                               Traceback (most recent call last)
  19. <ipython-input-1-50d283eebbb3> in <module>()
  20. ----> 1 import arcpy
  21.  
  22. C:Program FilesArcGISProResourcesArcPyarcpy__init__.py in <module>()
  23.      62 """.format(install_dir)
  24.      63     print(msg)
  25. ---> 64     raise ImportError("arcpy needs to run within an active ArcGIS Conda environment")
  26.      65
  27.      66 from arcpy.geoprocessing import gp
  28.  
  29. ImportError: arcpy needs to run within an active ArcGIS Conda environment
  30.    
  31. cd C:Program FilesArcGISProbinPython
  32. python -m pip install --upgrade pip
  33. python -m pip install jupyter
RAW Paste Data
Top