Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>import arcpy
- arcpy must be run from inside the Conda environment, which ArcGIS
- uses to manage the installation of Python.
- You can access this environment by launching Python from the links inside the
- "ArcGIS > ArcGIS Pro" Start Menu Group:
- "Python Interactive Terminal" starts a Python session.
- "Python Command Prompt" opens a Command Prompt window initialized with Conda.
- Or by running the proenv.bat file in the terminal:
- C:> C:Program FilesArcGISProbinpythonscriptsproenv.bat
- ---------------------------------------------------------------------------
- ImportError Traceback (most recent call last)
- <ipython-input-1-50d283eebbb3> in <module>()
- ----> 1 import arcpy
- C:Program FilesArcGISProResourcesArcPyarcpy__init__.py in <module>()
- 62 """.format(install_dir)
- 63 print(msg)
- ---> 64 raise ImportError("arcpy needs to run within an active ArcGIS Conda environment")
- 65
- 66 from arcpy.geoprocessing import gp
- ImportError: arcpy needs to run within an active ArcGIS Conda environment
- cd C:Program FilesArcGISProbinPython
- python -m pip install --upgrade pip
- python -m pip install jupyter
Add Comment
Please, Sign In to add comment