Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • I quickly realized that ArcGIS Pro comes with Coda package manager and I was able to install the arcgis package. What I didn't realize is that the version running in my arcgispro-py3 environment is 3.5.4. I installed Anaconda 3.6. Now when I try to run >import arcgis I get the error: ModuleNotFoundError. The Anaconda/Continuum documentation says to run >conda install python=3.5 , but in what path? If I just go to my user directory and run >python --version, in the Anaconda command prompt, it says python 3.6.5. Very confusing! Commented Aug 14, 2018 at 14:09
  • 1
    Did you install arcgis using the following at prompt- conda install -c esri arcgis? That is the correct code, and should upgrade your python for Pro. I would say check your environmental paths because you may be trying to import the arcgis package with the python environment that it's not associated with (ie. not Pro). It would be safe to navigate to conda in the ArcGIS > Pro directory using cmd, and then type the conda install. Prior to Pro 2.2, the packages (including conda), are usually held at C:\Program Files\ArcGIS\Pro\bin\Python\Scripts. After 2.2- Python\envs\arcgispro-py3 Commented Aug 14, 2018 at 14:36
  • OK, so I ran the >conda install -c esri arcgis command from C:\Program Files\ArcGIS\Pro\bin\Python\Scripts. looked fine. I then ran >python --version and its showing Python 2.7.12! What the heck. I've been using 2.7, but now I need to use 3.5.4 with Anaconda. How do I fix that? Commented Aug 14, 2018 at 14:51
  • In cmd. navaigate to C:\Program Files\ArcGIS\Pro\bin\Python then type python. Python should start at 3.5.4. Then type import arcgis. Does that work? If it does, you need to modify your environmental paths. Commented Aug 14, 2018 at 15:11
  • Nope. Still running in version 2.7 in C:\Program Files\ArcGIS\Pro\bin\Python. How can I switch versions (I am running in Windows, so I can't do alias)? Commented Aug 14, 2018 at 15:16