Giter Site home page Giter Site logo

Comments (3)

rohitgeo avatar rohitgeo commented on May 20, 2024

It appears that you've installed arcgis package in arcgispro-py3 environment using proenv.bat/Python Command Prompt window within ArcGIS Pro, but the notebook server has been started in a different conda environment.

Can you try restarting Jupyter notebook from within the proenv.bat/Python Command Prompt window in ArcGIS Pro?

from arcgis-python-api.

scw avatar scw commented on May 20, 2024

Hello @cyrusblankinship,

Unfortunately the instructions in the other thread are out of date and using conda-forge is known to cause some issues. We've resolved this problem for the next release of Pro, but that doesn't help you now. A couple of options:

  1. If you're comfortable editing code, open the file:

<Pro installation directory>\Resources\ArcPy\arcpy\__init__.py

and change line 31, which currently reads:

if not "Continuum" in sys.version:

to instead read:

if not "Continuum" in sys.version and not "conda-forge" in sys.version:

That will allow "conda-forge" to pass muster as a provider of a Python installation. (We added this check to prevent some complicated cases that will cause crashes with mixing Python installs).

  1. The less technical solution is to entirely delete Pro, remove any remaining directories and files in the <Pro install>\bin\Python directory (which will have been modified by installing via conda-forge), and then installing Pro again. Finally, then use the instructions provided in the documentation which should boil down to opening proenv.bat and then running:

conda install -c esri arcgis

From the prompt.

from arcgis-python-api.

cyrusblankinship avatar cyrusblankinship commented on May 20, 2024

@scw, I followed the second option and it worked. Thank you both for the detailed description.

from arcgis-python-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.