Select to view content in your preferred language

Problems installing arcgis via pip

1540
2
Jump to solution
04-07-2024 07:48 PM
robmerritt
Emerging Contributor

I am having issues installing arcgis for python 3.12, here is what I am getting

 

C:\Users\RobMe>pip install arcgis
Collecting arcgis
Using cached arcgis-2.0.0.tar.gz (3.7 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [20 lines of output]
Traceback (most recent call last):
File "C:\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
main()
File "C:\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\RobMe\AppData\Local\Temp\pip-build-env-iwernb4t\overlay\Lib\site-packages\setuptools\build_meta.py", line 325, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\RobMe\AppData\Local\Temp\pip-build-env-iwernb4t\overlay\Lib\site-packages\setuptools\build_meta.py", line 295, in _get_build_requires
self.run_setup()
File "C:\Users\RobMe\AppData\Local\Temp\pip-build-env-iwernb4t\overlay\Lib\site-packages\setuptools\build_meta.py", line 487, in run_setup
super().run_setup(setup_script=setup_script)
File "C:\Users\RobMe\AppData\Local\Temp\pip-build-env-iwernb4t\overlay\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup
exec(code, locals())
File "<string>", line 193, in <module>
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: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

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

C:\Users\RobMe>

 

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
Luke_Pinner
MVP Regular Contributor

Python 3.12 is not supported yet. 

From pypi:

Programming Language

From the API system requirements docs:

 Python Version

Python 3.9.x to 3.11.x is required

View solution in original post

2 Replies
Luke_Pinner
MVP Regular Contributor

Python 3.12 is not supported yet. 

From pypi:

Programming Language

From the API system requirements docs:

 Python Version

Python 3.9.x to 3.11.x is required

robmerritt
Emerging Contributor

Ok that worked I added PYTHON 3.10 and got it installed

0 Kudos