Select to view content in your preferred language

Inconsistent Python Environment - import arcgis works in jupyter but not IDLE

648
2
Jump to solution
01-02-2024 12:54 PM
GIS_utahDEM
Frequent Contributor

Trying to update packages since import arcgis is not working in IDLE, this is the error I get...

 

Collecting package metadata (current_repodata.json): ...working... done
The environment is inconsistent, please check the package plan carefully
The following packages are causing the inconsistency:
- esri/win-64::arcgis==2.2.0.1=py39_39
- esri/win-64::arcpy==3.2=py39_arcgispro_49743
- defaults/win-64::async_generator==1.10=py37h28b3542_0
- esri/noarch::azure-core==1.12.0=py_0
- esri/noarch::azure-storage-blob==12.8.0=py_0
- defaults/win-64::cligj==0.7.2=py37haa95532_0
- defaults/win-64::curl==7.82.0=h2bbff1b_0
- esri/noarch::dask==2023.3.2=py_0
- esri/noarch::distributed==2023.3.2=py_0
- defaults/win-64::fiona==1.8.13.post1=py37h758c064_0
- defaults/noarch::geopandas==0.9.0=py_1
- defaults/noarch::geopandas-base==0.9.0=py_1
- esri/noarch::ipywidgets==7.7.2=py_0
- defaults/win-64::jsonschema==4.4.0=py37haa95532_0
- esri/noarch::jupyterlab==3.4.8=py_0
- esri/noarch::jupyterlab_server==2.16.0=py_1
- esri/noarch::jupyter_contrib_core==0.4.0=py_0
- esri/noarch::jupyter_contrib_nbextensions==0.6.0=py_2
- esri/noarch::jupyter_highlight_selected_word==0.2.0=py_4
- esri/noarch::jupyter_latex_envs==1.4.6=py_5
- esri/noarch::jupyter_nbextensions_configurator==0.4.1=py_3
- esri/noarch::jupyter_server==1.21.0=py_0
- defaults/win-64::libboost==1.73.0=h6c2663c_11
- defaults/win-64::libcurl==7.82.0=h86230a5_0
- esri/win-64::libgdal==3.0.2=h955fff2_0
- esri/win-64::libkml==1.3.0=he5f2a48_4
- defaults/win-64::libnetcdf==4.7.3=h1302dcc_0
- defaults/win-64::libspatialite==4.3.0a=h7ffb84d_0
- defaults/win-64::libssh2==1.9.0=h7a1dbc1_1
- defaults/noarch::mapclassify==2.4.3=pyhd3eb1b0_0
- esri/noarch::msrest==0.6.21=py_0
- esri/noarch::nbclassic==0.4.8=py_0
- esri/noarch::nbclient==0.7.0=py_3
- esri/noarch::nbconvert==7.2.1=py_2
- esri/noarch::nbformat==5.6.1=py_0
- esri/noarch::notebook==6.4.12=py_0
- esri/noarch::notebook-shim==0.1.0=py_0
- esri/win-64::pillow-simd==8.2.0=py37_1
- defaults/win-64::postgresql==12.2=hb652d5d_1
- esri/win-64::pro_notebook_integration==3.2=py39_5
- defaults/win-64::pyproj==2.6.1.post1=py37h593ac45_1
- defaults/win-64::requests==2.31.0=py39haa95532_0
- esri/noarch::requests-gssapi==1.2.3=py_2
- esri/win-64::requests-kerberos==0.12.0=0
- esri/win-64::requests-negotiate-sspi==0.5.3=py39_0
- defaults/noarch::requests-oauthlib==1.3.0=py_0
- esri/noarch::requests-toolbelt==1.0.0=py_0
- defaults/win-64::rtree==0.9.7=py37h2eaa2aa_1
- esri/win-64::scikit-learn==1.0.2=py37_0
- defaults/win-64::shapely==1.7.1=py37h06580b3_0
- esri/win-64::swat==1.13.2=py39_0
- defaults/win-64::terminado==0.9.4=py37haa95532_0
- esri/win-64::tiledb==1.6.3=h587dcfd_0
- defaults/win-64::urllib3==1.26.9=py37haa95532_0

0 Kudos
1 Solution

Accepted Solutions
BobBooth1
Esri Contributor

How are you starting IDLE? You may not be opening the one associated with the arcgispro-py3 environment.

One way to get the right IDLE is to right-click a Python script (.py file) and click Edit with IDLE (ArcGIS Pro).

If Edit with IDLE (ArcGIS Pro) is not visible in the context menu, click Start, expand ArcGIS, and open Python Command Prompt. In the Python Command Prompt window, type idle and press Enter. The IDLE (Python 3.9 Shell) appears. 

View solution in original post

0 Kudos
2 Replies
BobBooth1
Esri Contributor

How are you starting IDLE? You may not be opening the one associated with the arcgispro-py3 environment.

One way to get the right IDLE is to right-click a Python script (.py file) and click Edit with IDLE (ArcGIS Pro).

If Edit with IDLE (ArcGIS Pro) is not visible in the context menu, click Start, expand ArcGIS, and open Python Command Prompt. In the Python Command Prompt window, type idle and press Enter. The IDLE (Python 3.9 Shell) appears. 

0 Kudos
GIS_utahDEM
Frequent Contributor

Opening idle from the python command prompt worked!

0 Kudos