Unable to install anything using pip after upgrade to 20.0
See original GitHub issueEnvironment
- pip version: 20.0
- Python version: 3.6.8
- OS: Ubuntu 14.04.6 (Don’t judge)
Description
During our build process, we automatically upgrade to the newest version on pip. After upgrading to 20.0 (using pip install -U pip setuptools), we are unable to install any packages.
Output
Traceback (most recent call last):
File "/home/svc-web/webshop/env/bin/pip", line 8, in <module>
sys.exit(main())
File "/home/svc-web/webshop/env/lib/python3.6/site-packages/pip/_internal/cli/main.py", line 73, in main
command = create_command(cmd_name, isolated=("--isolated" in cmd_args))
File "/home/svc-web/webshop/env/lib/python3.6/site-packages/pip/_internal/commands/__init__.py", line 96, in create_command
module = importlib.import_module(module_path)
File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/svc-web/webshop/env/lib/python3.6/site-packages/pip/_internal/commands/install.py", line 24, in <module>
from pip._internal.cli.req_command import RequirementCommand
File "/home/svc-web/webshop/env/lib/python3.6/site-packages/pip/_internal/cli/req_command.py", line 20, in <module>
from pip._internal.operations.prepare import RequirementPreparer
File "/home/svc-web/webshop/env/lib/python3.6/site-packages/pip/_internal/operations/prepare.py", line 16, in <module>
from pip._internal.distributions import (
File "/home/svc-web/webshop/env/lib/python3.6/site-packages/pip/_internal/distributions/__init__.py", line 1, in <module>
from pip._internal.distributions.source import SourceDistribution
ImportError: cannot import name 'SourceDistribution'
Issue Analytics
- State:
- Created 4 years ago
- Reactions:196
- Comments:103 (15 by maintainers)
Top Results From Across the Web
Pip cannot install anything after upgrading to Python 3.10.0 on ...
This is the error it gives for anything I try to install. C:\Users\AMAL>pip install numpy Collecting numpy Using cached numpy-1.21.2.zip ( ...
Read more >Cannot update or install anything with pip, SSL error
Run cmd as Administrator. Running cmd as admin did upgrade pip to version 18.0 but I still get the same ssl error when...
Read more >How to install and use Pip3 - ActiveState
Click to install and use Pip3 for linux, windows and macOS. ... pip 20.0.2 from C:\Python38\lib\site-packages\pip (python 3.8).
Read more >Cannot install packages with pip - error with inconsistent ...
I recently have an issue trying to install anything with pip. It keeps trying older versions complaining that each one has a version ......
Read more >User Guide - pip documentation v22.3.1
This also means that, when you run a pip install command, pip only considers the packages you are installing in that command, and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s worth mentioning that mistakes, problems and unforeseen mishaps happen to all projects, no matter how much you plan and try to mitigate such events.
Spare a thought and supportive comments for the volunteer Pythonistas looking into this and fixing it for all our benefit.
Always remember that the maintainers are also humans, and programming mistakes are actually common among this species. We should be providing any support they or the community need than blaming people.