The 'pip==19.0.2' distribution was not found and is required by the application
See original GitHub issueEnvironment
- pip version: 19.0.3
- Python version: 3.7
- OS: Mac OS Mojave 10.14.4
Description
python installed with homebrew
running pip -v or pip upgrade or anything else with pip
- Get package from home-brew
- Then run pip
- An error occurs.
Output
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 583, in _build_master
ws.require(__requires__)
File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 900, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 791, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.VersionConflict: (pip 19.0.3 (/usr/local/lib/python3.7/site-packages), Requirement.parse('pip==19.0.2'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/opt/python/libexec/bin/pip", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3191, in <module>
@_call_aside
File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3175, in _call_aside
f(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3204, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 585, in _build_master
return cls._build_from_requirements(__requires__)
File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 598, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 786, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pip==19.0.2' distribution was not found and is required by the application
Issue Analytics
- State:
- Created 4 years ago
- Reactions:28
- Comments:7 (2 by maintainers)
Top Results From Across the Web
The 'pip==7.1.0' distribution was not found and is required by ...
No i dont use virtualenv. Pip version say the same thing · I tried multiple solutions, including downloading from source, purging, etc. This...
Read more >The 'pip==9.0.3' distribution was not found and is required by ...
I have the latest version of pip in my laptop.I always get this error when I install any modules using pip. Traceback (most...
Read more >catkin-pkg distribution was not found - ROS Answers
DistributionNotFound: The 'catkin-pkg==0.4.3' distribution was not found and is required by the application I get the same error when I just ...
Read more >Changelog - pip documentation v22.3.1
When this field is present for a release link, pip will ignore the download when installing to a Python version that doesn't satisfy...
Read more >How to install Python packages using pip - Statalist
skipping ERROR: Could not find a version that satisfies the requirement pip (from versions: none) ERROR: No matching distribution found for ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
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
No results found
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
This is an ongoing problem caused by homebrew, occurs when you upgrade pip. As @pfmoore said the pip executable file provided by homebrew is the culprit, it has a hardcoded pip version requirement in it. The easiest way is to just run brew reinstall python to fix this problem. You can try pip install pip --upgrade afterwards and break it again to confirm.
Closing since there’s nothing actionable here. Homebrew should fix this issue on their end.