Using Python PIP in 10.4.1

3751
2
Jump to solution
08-31-2016 08:35 AM
DaveHighness
Occasional Contributor II

Hi, I am trying to install a python package (PyFPDF) in the ArcGIS Server 10.4.1 Python instance 2.7.10. It looks to me like PIP is already a part of this instance as the executable is in the /Scripts folder. When I try to do anything with it though I always get this error.

C:\Python27\ArcGISx6410.4\Scripts>pip
Fatal error in launcher: Unable to create process using '"C:\Python27\ArcGIS10.4
\python.exe" "C:\Python27\ArcGISx6410.4\Scripts\pip.exe" '

Anyone know how to fix this?

Tags (2)
1 Solution

Accepted Solutions
DaveHighness
Occasional Contributor II

I figured out how to upgrade Pip and that fixed the issue. Start the Command Prompt as Administrator and do the following:

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Windows\system32>cd \

C:\>cd C:\Python27\ArcGISx6410.4

C:\Python27\ArcGISx6410.4>python -m pip install -U pip
You are using pip version 7.0.1, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting pip
Using cached pip-8.1.2-py2.py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 7.0.1
Uninstalling pip-7.0.1:
Successfully uninstalled pip-7.0.1
Successfully installed pip-8.1.2

Now pip is working to install packages.

View solution in original post

2 Replies
DaveHighness
Occasional Contributor II

I figured out how to upgrade Pip and that fixed the issue. Start the Command Prompt as Administrator and do the following:

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Windows\system32>cd \

C:\>cd C:\Python27\ArcGISx6410.4

C:\Python27\ArcGISx6410.4>python -m pip install -U pip
You are using pip version 7.0.1, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting pip
Using cached pip-8.1.2-py2.py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 7.0.1
Uninstalling pip-7.0.1:
Successfully uninstalled pip-7.0.1
Successfully installed pip-8.1.2

Now pip is working to install packages.

AdamDunlap
New Contributor III

I also had success using:   easy_install -U pip

Hope that helps!

0 Kudos