Skip to content

get-pip.py --user fails on systems without a /usr/lib64 dir #5379

@JensTimmerman

Description

@JensTimmerman
  • Pip version: latest from get-pip.py (looks like pip-10.0.1-py2.py3-none-any.whl )
  • Python version: 2.7.9
  • Operating system: Linux 3.16.0-4-amd64 No instructions for how to install pip #1 SMP Debian 3.16.43-2+deb8u2 (2017-06-26) x86_64 GNU/Linux

Description:

When trying to replace easy_install with pip on a system without a /usr/lib64 direcctory I'm getting permission denied errors when running python get-pip.py --user

What I've run:

wget -O get-pip.py https://bootstrap.pypa.io/get-pip.py
--2018-05-07 15:45:50--  https://bootstrap.pypa.io/get-pip.py
Resolving bootstrap.pypa.io (bootstrap.pypa.io)... 151.101.36.175, 2a04:4e42:9::175
Connecting to bootstrap.pypa.io (bootstrap.pypa.io)|151.101.36.175|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1642329 (1.6M) [text/x-python]
Saving to: ‘get-pip.py’

     0K .......... .......... .......... .......... ..........  3% 1.99M 1s
    50K .......... .......... .......... .......... ..........  6% 4.12M 1s
   100K .......... .......... .......... .......... ..........  9% 5.12M 0s
   150K .......... .......... .......... .......... .......... 12% 5.85M 0s
   200K .......... .......... .......... .......... .......... 15% 5.49M 0s
   250K .......... .......... .......... .......... .......... 18% 6.45M 0s
   300K .......... .......... .......... .......... .......... 21% 5.61M 0s
   350K .......... .......... .......... .......... .......... 24% 4.30M 0s
   400K .......... .......... .......... .......... .......... 28% 7.10M 0s
   450K .......... .......... .......... .......... .......... 31% 7.67M 0s
   500K .......... .......... .......... .......... .......... 34% 9.27M 0s
   550K .......... .......... .......... .......... .......... 37% 8.23M 0s
   600K .......... .......... .......... .......... .......... 40% 8.52M 0s
   650K .......... .......... .......... .......... .......... 43% 8.52M 0s
   700K .......... .......... .......... .......... .......... 46% 9.64M 0s
   750K .......... .......... .......... .......... .......... 49% 7.23M 0s
   800K .......... .......... .......... .......... .......... 52% 10.1M 0s
   850K .......... .......... .......... .......... .......... 56% 8.80M 0s
   900K .......... .......... .......... .......... .......... 59% 13.6M 0s
   950K .......... .......... .......... .......... .......... 62% 9.09M 0s
  1000K .......... .......... .......... .......... .......... 65% 8.95M 0s
  1050K .......... .......... .......... .......... .......... 68% 22.0M 0s
  1100K .......... .......... .......... .......... .......... 71% 8.29M 0s
  1150K .......... .......... .......... .......... .......... 74% 8.72M 0s
  1200K .......... .......... .......... .......... .......... 77% 15.7M 0s
  1250K .......... .......... .......... .......... .......... 81% 11.1M 0s
  1300K .......... .......... .......... .......... .......... 84% 16.5M 0s
  1350K .......... .......... .......... .......... .......... 87% 10.3M 0s
  1400K .......... .......... .......... .......... .......... 90% 15.8M 0s
  1450K .......... .......... .......... .......... .......... 93% 11.9M 0s
  1500K .......... .......... .......... .......... .......... 96% 19.3M 0s
  1550K .......... .......... .......... .......... .......... 99% 10.5M 0s
  1600K ...                                                   100% 7318G=0.2s

2018-05-07 15:45:50 (7.58 MB/s) - ‘get-pip.py’ saved [1642329/1642329]

python get-pip.py --user
Collecting pip
  Using cached https://files.pythonhosted.org/packages/0f/74/ecd13431bcc456ed390b44c8a6e917c1820365cbebcb6a8974d1cd045ab4/pip-10.0.1-py2.py3-none-any.whl
Installing collected packages: pip
  Found existing installation: pip 10.0.1
    Uninstalling pip-10.0.1:
      Successfully uninstalled pip-10.0.1
  Rolling back uninstall of pip
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/lib64'
Check the permissions.

This happens on a system without a /usr/lib64 directory

ls /usr/lib64
ls: cannot access /usr/lib64: No such file or directory
Python 2.7.9 (default, Jun 29 2016, 13:08:31)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/var/lib/jenkins/.local/lib/python2.7/site-packages', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages']

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions