question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The 'pip==19.0.2' distribution was not found and is required by the application

See original GitHub issue

Environment

  • 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

  1. Get package from home-brew
  2. Then run pip
  3. 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:closed
  • Created 4 years ago
  • Reactions:28
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

7reactions
emreerancommented, Jun 3, 2019

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.

0reactions
pradyunsgcommented, Jun 29, 2019

Closing since there’s nothing actionable here. Homebrew should fix this issue on their end.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found