Installing Esri Arcpy

What is the correct method to install Esri’s Arcpy?

I created a new Conda environment in Anaconda Navigator based on Python 3.7.13 and the ran “conda install arcpy=2.9 -c esri” as attributed on Esri’s website. However, I get a ton of conflicts… is there no way to automatically resolve conflicts when using conda install? Is there a better way to install arcpy? ( do already have a working version of Arcpro)

One solution when you have some package that is very complicated is to try creating a new conda environment based on that package and then install the extra stuff afterwards. E.g.

conda create -n test_env -c esri arcpy=2.9

Or if you want to specify the version of Python first:

conda create -n test_env python=3.7
conda activate test_env
conda install -c esri arcpy=2.9

You then build up the rest of your environment as you need.

Unfortunately, neither of those have worked. Is there a way to automatically resolve conflicts when installing a new package?

conda automatically resolves automatically. This worked for me:

conda create -n test_env2 -c esri arcpy=2.9

I got this as my installation requirement:

The following NEW packages will be INSTALLED:

  appdirs            main/noarch::appdirs-1.4.4-pyhd3eb1b0_0
  arcgis             esri/win-64::arcgis-2.0.0-py37_2535
  arcgispro          esri/win-64::arcgispro-2.9-0
  arcpy              esri/win-64::arcpy-2.9-py37_arcgispro_32704
  arrow-cpp          esri/win-64::arrow-cpp-1.0.1-3
  asn1crypto         main/win-64::asn1crypto-1.5.1-py37haa95532_0
  atomicwrites       main/noarch::atomicwrites-1.4.0-py_0
  attrs              main/noarch::attrs-21.4.0-pyhd3eb1b0_0
  azure-core         esri/noarch::azure-core-1.12.0-py_0
  azure-storage-blob esri/noarch::azure-storage-blob-12.8.0-py_0
  backcall           main/noarch::backcall-0.2.0-pyhd3eb1b0_0
  black              main/noarch::black-19.10b0-py_0
  blas               main/win-64::blas-1.0-mkl
  bleach             main/noarch::bleach-4.1.0-pyhd3eb1b0_0
  blinker            main/win-64::blinker-1.4-py37haa95532_0
  bottleneck         main/win-64::bottleneck-1.3.4-py37h080aedc_0
  brotlipy           main/win-64::brotlipy-0.7.0-py37h2bbff1b_1003
  cached-property    main/noarch::cached-property-1.5.2-py_0
  cachetools         main/noarch::cachetools-4.2.2-pyhd3eb1b0_0
  certifi            main/win-64::certifi-2021.10.8-py37haa95532_2
  cffi               main/win-64::cffi-1.15.0-py37h2bbff1b_1
  cftime             esri/win-64::cftime-1.5.0-py37_1
  charset-normalizer main/noarch::charset-normalizer-2.0.4-pyhd3eb1b0_0
  click              main/win-64::click-8.0.4-py37haa95532_0
  colorama           main/noarch::colorama-0.4.4-pyhd3eb1b0_0
  cppzmq             esri/win-64::cppzmq-4.4.1-4
  cryptography       esri/win-64::cryptography-3.4.7-py37_3
  cycler             main/noarch::cycler-0.11.0-pyhd3eb1b0_0
  decorator          main/noarch::decorator-5.1.1-pyhd3eb1b0_0
  defusedxml         main/noarch::defusedxml-0.7.1-pyhd3eb1b0_0
  despatch           esri/win-64::despatch-0.1.0-py37_0
  entrypoints        main/win-64::entrypoints-0.4-py37haa95532_0
  et_xmlfile         main/win-64::et_xmlfile-1.1.0-py37haa95532_0
  fastcache          main/win-64::fastcache-1.1.0-py37he774522_0
  flake8             main/noarch::flake8-4.0.1-pyhd3eb1b0_1
  freetype           esri/win-64::freetype-2.10.4-vc14_3
  future             esri/win-64::future-0.18.2-py37_0
  gdal               esri/win-64::gdal-3.3.0-arcgispro_py37_16778
  geomet             esri/noarch::geomet-0.3.0-py_1
  h5py               esri/win-64::h5py-2.10.0-py37_arcgispro_12
  html5lib           main/noarch::html5lib-1.1-pyhd3eb1b0_0
  icc_rt             esri/win-64::icc_rt-2019.0.5-arcgispro_0
  idna               main/noarch::idna-3.3-pyhd3eb1b0_0
  importlib-metadata main/win-64::importlib-metadata-4.11.3-py37haa95532_0
  importlib_metadata main/noarch::importlib_metadata-4.11.3-hd3eb1b0_0
  importlib_resourc~ main/noarch::importlib_resources-5.2.0-pyhd3eb1b0_1
  iniconfig          main/noarch::iniconfig-1.1.1-pyhd3eb1b0_0
  intel-openmp       esri/win-64::intel-openmp-2020.0-arcgispro_166
  ipykernel          esri/win-64::ipykernel-5.1.1-py37_0
  ipython            esri/win-64::ipython-7.21.0-py37_0
  ipython_genutils   main/noarch::ipython_genutils-0.2.0-pyhd3eb1b0_1
  ipywidgets         main/win-64::ipywidgets-7.4.2-py37_0
  isodate            esri/noarch::isodate-0.6.0-py_0
  jedi               esri/win-64::jedi-0.18.0-py37_0
  jinja2             main/noarch::jinja2-3.0.3-pyhd3eb1b0_0
  jpeg               esri/win-64::jpeg-9d-0
  json5              esri/win-64::json5-0.9.4-py37_0
  jsonschema         main/win-64::jsonschema-4.4.0-py37haa95532_0
  jupyter_client     esri/noarch::jupyter_client-6.1.7-py_1
  jupyter_console    esri/noarch::jupyter_console-6.4.0-py_1
  jupyter_contrib_c~ esri/noarch::jupyter_contrib_core-0.3.3-py_4
  jupyter_contrib_n~ esri/noarch::jupyter_contrib_nbextensions-0.5.1-py_24
  jupyter_core       esri/win-64::jupyter_core-4.6.3-py37_2
  jupyter_highlight~ esri/noarch::jupyter_highlight_selected_word-0.2.0-py_4
  jupyter_latex_envs esri/noarch::jupyter_latex_envs-1.4.6-py_3
  jupyter_nbextensi~ esri/noarch::jupyter_nbextensions_configurator-0.4.1-py_3
  jupyterlab         esri/noarch::jupyterlab-2.2.7-py_0
  jupyterlab_server  main/noarch::jupyterlab_server-1.2.0-py_0
  keyring            esri/win-64::keyring-21.4.0-py37_0
  kiwisolver         main/win-64::kiwisolver-1.3.2-py37hd77b12b_0
  lerc               esri/noarch::lerc-3.0-pyh39e3cac_0
  libdeflate         main/win-64::libdeflate-1.8-h2bbff1b_5
  libpng             main/win-64::libpng-1.6.37-h2a8f88b_0
  libprotobuf        main/win-64::libprotobuf-3.13.0.1-h200bbdf_0
  libsodium          esri/win-64::libsodium-1.0.18-2
  libtiff            esri/win-64::libtiff-4.3.0-1
  libxml2            esri/win-64::libxml2-2.9.12-arcgispro_0
  libxslt            main/win-64::libxslt-1.1.34-he774522_0
  lxml               main/win-64::lxml-4.8.0-py37h1985fb9_0
  lz4-c              main/win-64::lz4-c-1.9.3-h2bbff1b_1
  markupsafe         main/win-64::markupsafe-2.0.1-py37h2bbff1b_0
  matplotlib         esri/win-64::matplotlib-3.4.3-py37_arcgispro_1
  matplotlib-base    esri/win-64::matplotlib-base-3.4.3-py37_arcgispro_1
  mccabe             main/noarch::mccabe-0.7.0-pyhd3eb1b0_0
  mistune            main/win-64::mistune-0.8.4-py37hfa6e2cd_1001
  mkl                esri/win-64::mkl-2020.0-arcgispro_167
  mkl-service        main/win-64::mkl-service-2.3.0-py37h196d8e1_0
  mkl_fft            main/win-64::mkl_fft-1.3.0-py37h46781fe_0
  mkl_random         esri/win-64::mkl_random-1.2.0-py37_0
  mpmath             main/win-64::mpmath-1.2.1-py37haa95532_0
  msrest             esri/noarch::msrest-0.6.21-py_0
  mypy_extensions    main/win-64::mypy_extensions-0.4.3-py37haa95532_1
  nbconvert          esri/win-64::nbconvert-5.6.1-py37_0
  nbformat           esri/noarch::nbformat-5.1.3-py_1
  netcdf4            esri/win-64::netcdf4-1.5.7-py37_arcgispro_2
  networkx           esri/win-64::networkx-2.5-py37_0
  nlohmann_json      esri/win-64::nlohmann_json-3.7.0-1
  nose               main/noarch::nose-1.3.7-pyhd3eb1b0_1008
  notebook           main/win-64::notebook-5.7.10-py37_0
  ntlm-auth          esri/noarch::ntlm-auth-1.4.0-py_0
  numexpr            main/win-64::numexpr-2.7.3-py37hcbcaa1e_0
  numpy              esri/win-64::numpy-1.20.1-py37_0
  numpy-base         esri/win-64::numpy-base-1.20.1-py37_0
  oauthlib           main/noarch::oauthlib-3.2.0-pyhd3eb1b0_0
  olefile            main/win-64::olefile-0.46-py37_0
  openpyxl           main/noarch::openpyxl-3.0.9-pyhd3eb1b0_0
  openssl            esri/win-64::openssl-1.1.1k-1
  packaging          main/noarch::packaging-21.3-pyhd3eb1b0_0
  pandas             main/win-64::pandas-1.3.5-py37h6214cd6_0
  pandocfilters      main/noarch::pandocfilters-1.5.0-pyhd3eb1b0_0
  parso              main/noarch::parso-0.8.3-pyhd3eb1b0_0
  pathspec           main/noarch::pathspec-0.7.0-py_0
  pefile             main/noarch::pefile-2019.4.18-py_0
  pickleshare        main/noarch::pickleshare-0.7.5-pyhd3eb1b0_1003
  pillow             esri/win-64::pillow-8.3.2-py37_0
  pip                main/win-64::pip-21.2.4-py37haa95532_0
  pluggy             main/win-64::pluggy-0.13.1-py37haa95532_0
  pro_notebook_inte~ esri/win-64::pro_notebook_integration-2.9-py37_9
  prometheus_client  esri/noarch::prometheus_client-0.8.0-py_0
  prompt_toolkit     esri/noarch::prompt_toolkit-3.0.5-py_0
  protobuf           main/win-64::protobuf-3.13.0.1-py37ha925a31_1
  psutil             main/win-64::psutil-5.8.0-py37h2bbff1b_1
  py                 main/noarch::py-1.11.0-pyhd3eb1b0_0
  pyarrow            esri/win-64::pyarrow-1.0.1-2
  pybind11           esri/win-64::pybind11-2.7.1-0
  pybind11_json      esri/win-64::pybind11_json-0.2.6-2
  pycodestyle        main/noarch::pycodestyle-2.8.0-pyhd3eb1b0_0
  pycparser          main/noarch::pycparser-2.21-pyhd3eb1b0_0
  pyflakes           main/noarch::pyflakes-2.4.0-pyhd3eb1b0_0
  pygments           esri/noarch::pygments-2.9.0-py_0
  pyjwt              main/win-64::pyjwt-2.1.0-py37haa95532_0
  pyodbc             main/win-64::pyodbc-4.0.32-py37hd77b12b_1
  pyopenssl          main/noarch::pyopenssl-21.0.0-pyhd3eb1b0_1
  pyparsing          main/noarch::pyparsing-3.0.4-pyhd3eb1b0_0
  pypdf2             esri/noarch::pypdf2-1.26.0-py_4
  pyrsistent         main/win-64::pyrsistent-0.18.0-py37h196d8e1_0
  pyshp              main/noarch::pyshp-2.1.3-pyhd3eb1b0_0
  pysocks            main/win-64::pysocks-1.7.1-py37_1
  pytest             esri/win-64::pytest-6.2.4-py37_0
  python             esri/win-64::python-3.7.11-1
  python-certifi-wi~ esri/noarch::python-certifi-win32-1.6-py_0
  python-dateutil    main/noarch::python-dateutil-2.8.2-pyhd3eb1b0_0
  python_abi         esri/win-64::python_abi-3.7-1_cp37m
  pytz               esri/win-64::pytz-2020.1-py37_0
  pywin32-ctypes     esri/win-64::pywin32-ctypes-0.2.0-py37_0
  pywin32-security   esri/win-64::pywin32-security-302-py37_1
  pywinpty           esri/win-64::pywinpty-0.5.7-py37_0
  pyyaml             conda-forge/win-64::pyyaml-3.13-py37hfa6e2cd_1001
  pyzmq              esri/win-64::pyzmq-22.2.1-py37_0
  regex              main/win-64::regex-2022.3.15-py37h2bbff1b_0
  requests           main/noarch::requests-2.27.1-pyhd3eb1b0_0
  requests-kerberos  esri/win-64::requests-kerberos-0.12.0-0
  requests-negotiat~ esri/win-64::requests-negotiate-sspi-0.5.3-py37_0
  requests-oauthlib  main/noarch::requests-oauthlib-1.3.0-py_0
  requests-toolbelt  main/noarch::requests-toolbelt-0.9.1-pyhd3eb1b0_0
  requests_ntlm      esri/noarch::requests_ntlm-1.1.0-py_0
  saspy              esri/noarch::saspy-3.7.8-py_0
  scipy              main/win-64::scipy-1.6.2-py37h14eb087_0
  send2trash         main/noarch::send2trash-1.8.0-pyhd3eb1b0_1
  setuptools         main/win-64::setuptools-61.2.0-py37haa95532_0
  simplegeneric      main/win-64::simplegeneric-0.8.1-py37_2
  six                esri/noarch::six-1.16.0-py_0
  sqlalchemy         main/win-64::sqlalchemy-1.3.23-py37h2bbff1b_0
  sqlite             esri/win-64::sqlite-3.36.0-0
  swat               esri/win-64::swat-1.9.3-py37_0
  sympy              esri/win-64::sympy-1.5.1-py37_0
  terminado          main/win-64::terminado-0.9.4-py37haa95532_0
  testpath           main/noarch::testpath-0.5.0-pyhd3eb1b0_0
  toml               main/noarch::toml-0.10.2-pyhd3eb1b0_0
  tornado            main/win-64::tornado-6.1-py37h2bbff1b_0
  traitlets          main/win-64::traitlets-4.3.3-py37haa95532_0
  typed-ast          main/win-64::typed-ast-1.4.3-py37h2bbff1b_1
  typing-extensions  main/noarch::typing-extensions-4.1.1-hd3eb1b0_0
  typing_extensions  main/noarch::typing_extensions-4.1.1-pyh06a4308_0
  ujson              main/win-64::ujson-5.1.0-py37hd77b12b_0
  urllib3            main/win-64::urllib3-1.26.9-py37haa95532_0
  vc                 main/win-64::vc-14.1-h0510ff6_4
  vs2015_runtime     esri/win-64::vs2015_runtime-14.16.27012-hf0eaf9b_0
  wcwidth            main/noarch::wcwidth-0.2.5-pyhd3eb1b0_0
  webencodings       main/win-64::webencodings-0.5.1-py37_1
  wheel              main/noarch::wheel-0.37.1-pyhd3eb1b0_0
  widgetsnbextension main/win-64::widgetsnbextension-3.4.2-py37_0
  win_inet_pton      esri/win-64::win_inet_pton-1.1.0-py37_0
  wincertstore       main/win-64::wincertstore-0.2-py37haa95532_2
  winkerberos        esri/win-64::winkerberos-0.8.0-py37_0
  winpty             main/win-64::winpty-0.4.3-4
  wrapt              main/win-64::wrapt-1.13.3-py37h2bbff1b_2
  x86cpu             esri/win-64::x86cpu-0.4-py37_1
  xarray             main/noarch::xarray-0.20.1-pyhd3eb1b0_1
  xeus               esri/win-64::xeus-0.24.1-3
  xeus-python        esri/win-64::xeus-python-0.8.2-5
  xlrd               main/win-64::xlrd-1.2.0-py37_0
  xlwt               main/win-64::xlwt-1.3.0-py37_0
  xtl                esri/win-64::xtl-0.6.15-0
  xz                 main/win-64::xz-5.2.5-h8cc25b3_1
  yaml               esri/win-64::yaml-0.1.6-vc14_0
  zeromq             esri/win-64::zeromq-4.3.4-0
  zipp               main/win-64::zipp-3.8.0-py37haa95532_0
  zlib               main/win-64::zlib-1.2.12-h8cc25b3_2
  zstd               main/win-64::zstd-1.4.9-h19a0ad4_0

This is my error, either installing from the wrong command prompt, or windows based issue…

(base) C:\Users\Owner>conda create -n test_env2 -c esri arcpy=2.9
Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: -
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.
Examining @/win-64::__archspec==1=x86_64: 25%|██████████▌ | 1/4 [00:01<00:03, 1.08s/it]/failed

UnsatisfiableError:
Note that strict channel priority may have removed packages required for satisfiability.

What’s the output of conda config --show-sources?

(base) C:\Users\Owner>conda config --show-sources
==> C:\Users\Owner\anaconda3\.condarc <==
channel_priority: strict
channels:
  - conda-forge
  - defaults

==> C:\Users\Owner\.condarc <==
default_python: None
channels:
  - defaults

channel_priority: strict is breaking condas ability to resolve dependencies, remove it.

1 Like

Ah that worked… all installed now.

How to change the configuration?

This does not look like the same issue, I suggest you post a new thread.


Is there any solution?

Yes.

You should read the error message, or otherwise make a new thread so someone can answer your question.