arcgis-python-api icon indicating copy to clipboard operation
arcgis-python-api copied to clipboard

Issue Installing ArcGIS

Open ahmad2003 opened this issue 2 years ago • 0 comments
trafficstars

I have Python version 3.7.9. I am trying to install ArcGIS using the command 'pip install arcgis'. However, I am getting the following error.

pip --no-cache-dir install arcgis Collecting arcgis Downloading arcgis-2.0.0.tar.gz (3.7 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.7/3.7 MB 949.8 kB/s eta 0:00:00 Preparing metadata (setup.py) ... error error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [7 lines of output] Traceback (most recent call last): File "", line 2, in File "", line 34, in File "C:\Users\ahmad\AppData\Local\Temp\pip-install-ilm7mar0\arcgis_f2ac4677333d4648a8756e2b3455e60e\setup.py", line 193, in _get_rel_site_packages_dir() + "arcgis/gis/_impl" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ TypeError: unsupported operand type(s) for +: 'NoneType' and 'str' [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed

× Encountered error while generating package metadata. ╰─> See above for output.

note: This is an issue with the package mentioned above, not pip. hint: See above for details.

I have also tried upgrading 'pip','setuptools' and installing 'ez_setup' but this didn't help. Can you please help me solve the issue? Thanks!

ahmad2003 avatar Jul 25 '23 16:07 ahmad2003