-
Notifications
You must be signed in to change notification settings - Fork 80
Closed
Labels
duplicateThis issue or pull request already existsThis issue or pull request already exists
Milestone
Description
On newly created Ubuntu 16.04 AWS instances, we started seeing that python3.6 -m pip
no longer works after get-pip.py
(version 19.3.1). get-pip puts pip in /usr/lib/python3.6/site-packages/pip-20.2.2.dist-info
, but sys.path for our 3.6 executable is ['', '/usr/lib/python36.zip', '/usr/lib/python3.6', '/usr/lib/python3.6/lib-dynload', '/usr/local/lib/python3.6/dist-packages', '/usr/lib/python3/dist-packages']
.
On a newly created box I was able to confirm that using SETUPTOOLS_USE_DISTUTILS=stdlib
fixes the problem:
1 python3.6 /get_pip.py
2 python3.6 -m pip # works
3 python3.6 -m pip install -U setuptools # updates from 41.0.1 to 50.0.0
4 python3.6 -m pip # still works
5 python3.6 /get_pip.py
6 python3.6 -m pip # can't find pip any more
7 SETUPTOOLS_USE_DISTUTILS=stdlib python3.6 /get_pip.py
8 python3.6 -m pip # works again
Sorry this isn't a completely self-contained repro case for the bug; hopefully this is enough information to figure out what's going on.
dHannasch, vmarkovtsev, pquentin, skvark, vytas7 and 50 morecalebickler
Metadata
Metadata
Assignees
Labels
duplicateThis issue or pull request already existsThis issue or pull request already exists