I find this problem in my MacBook, the reason is because as @Stephan said, I use easy_install
to install pip, and the mixture of both py package manage tools led to the pkg_resources.DistributionNotFound
problem.
The resolve is:
easy_install --upgrade pip
Remember: just use one of the above tools to manage your Py packages.
More Related Contents:
- Install a Python package into a different directory using pip?
- Python – PIP install trouble shooting – PermissionError: [WinError 5] Access is denied
- Error after upgrading pip: cannot import name ‘main’
- Error while installing lxml through pip: Microsoft Visual C++ 14.0 is required
- What is the easiest way to remove all packages installed by pip?
- Installing SciPy with pip
- “Cannot open include file: ‘config-win.h’: No such file or directory” while installing mysql-python
- Fatal error in launcher: Unable to create process using “”C:\Program Files (x86)\Python33\python.exe” “C:\Program Files (x86)\Python33\pip.exe””
- pip freeze creates some weird path instead of the package version
- Src layout to dispense .src prefix in imports? Activate venv in PyCharm terminal for development installs
- pip connection failure: cannot fetch index base URL http://pypi.python.org/simple/
- pip is not able to install packages correctly: Permission denied error [duplicate]
- AttributeError: module ‘sipbuild.api’ has no attribute ‘prepare_metadata_for_build_wheel’ for PyQt5 5.15.0
- How do I install the yaml package for Python?
- Using hyphen/dash in python repository name and package name
- How to install PyGame on Python 3.4?
- How to use Python’s pip to download and keep the zipped files for a package?
- pip installs packages successfully, but executables not found from command line
- How to get pip to work behind a proxy server [duplicate]
- Installed module using pip, not found
- PIP Install Numpy throws an error “ascii codec can’t decode byte 0xe2”
- Equivalent for `–find-links` in `setup.py`
- Installing pygraphviz on Windows 10 64-bit, Python 3.6
- How to fix “ImportError: DLL load failed” while importing win32api
- Installing numpy on Docker Alpine
- Proper way to parse requirements file after pip upgrade to pip 10.x.x?
- What is the difference between pyenv, virtualenv, anaconda?
- Can pip be used with Python Tools in Visual Studio?
- The ‘pip==7.1.0’ distribution was not found and is required by the application
- Is there any way to show the dependency trees for pip packages?