ArcGIS PIP Installation Error

180
2
2 weeks ago
Labels (3)
Kodiyan
New Contributor

Getting this error while trying to PIP install. I'm using MS VS Code as IDE for python. I have created a virtual environment to test rather than system level installation, and same error. 

Error message below

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):
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.

Tags (1)
0 Kudos
2 Replies
Brian_Wilson
Occasional Contributor III

Normally it's easiest to install using a conda environment instead of pip. Using only pip you are making a lot more work for yourself. (What platform are you on, what are you trying to do? The reference to tar.gz makes me think it's Linux, but same goes for Windows or Linux - use conda.)

Normally you don't need to build arcgis, you just install the conda package.

It's possible to use pip in conda if you have to, for example, when there is no conda package. By this I mean first you set up conda and activate an environment, and use pip commands in that environment. When you do this the pip packages are installed into the conda environment so everything remains walled off in the conda space, both the conda and pip packages. No need for any separate pip virtual environment.

But there is definitely a conda package for arcgis.

conda search -c esri arcgis
Loading channels: done
# Name                       Version           Build  Channel
arcgis                           0.1          py34_0  esri
arcgis                           0.1          py35_0  esri
.
(many other versions omitted...)
.
.
arcgis                         2.3.0      py311_6408  esri
arcgis                         2.3.0       py39_6408  esri

VSCode fully supports conda, I use it every day on both Linux and Windows.

 

Kodiyan
New Contributor

Thank you for the quick reply.

I'm on Windows with VS Code as IDE. I have Venv environment for python and going to start a project with ArcGIS Pro(first time). I need data conditioning, Geo-coding in ArcGIS and couple of DB involved with this project (reason for using the VS Code). 

I'll try to switch to the conda and see if this going to work for me. 

0 Kudos