You can try to reinstall the broken pip
directly from python
(or python3
) rather than using the system package manager (pacman
). Note sure about Arch Linux, but for me it solved the similar issue (ModuleNotFoundError: No module named 'pip._vendor.retrying'
) on Ubuntu 16.04:
$ sudo python - m pip install--upgrade pip
After a system update, I receive this error anycodings_pip when trying to call pip (or pip3.7 or pip3):,You can try to reinstall the broken pip anycodings_python-3.x directly from python (or python3) rather anycodings_python-3.x than using the system package manager anycodings_python-3.x (pacman). Note sure about Arch Linux, anycodings_python-3.x but for me it solved the similar issue anycodings_python-3.x (ModuleNotFoundError: No module named anycodings_python-3.x 'pip._vendor.retrying') on Ubuntu 16.04:,The system is Arch Linux 5.2.1, python is anycodings_pip 3.7.3.,python-setuptools might be missing, but it anycodings_pip is there. Uninstalling and reinstalling anycodings_pip makes no difference.
After a system update, I receive this error anycodings_pip when trying to call pip (or pip3.7 or pip3):
$ pip3.7
Traceback (most recent call last):
File "/usr/bin/pip3.7", line 11, in <module>
load_entry_point('pip==19.0.3', 'console_scripts', 'pip3.7')()
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 489, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2843, in load_entry_point
return ep.load()
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2434, in load
return self.resolve()
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2440, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/lib/python3.7/site-packages/pip/_internal/__init__.py", line 40, in <module>
from pip._internal.cli.autocompletion import autocomplete
File "/usr/lib/python3.7/site-packages/pip/_internal/cli/autocompletion.py", line 8, in <module>
from pip._internal.cli.main_parser import create_main_parser
File "/usr/lib/python3.7/site-packages/pip/_internal/cli/main_parser.py", line 8, in <module>
from pip._internal.cli import cmdoptions
File "/usr/lib/python3.7/site-packages/pip/_internal/cli/cmdoptions.py", line 22, in <module>
from pip._internal.utils.hashes import STRONG_HASHES
File "/usr/lib/python3.7/site-packages/pip/_internal/utils/hashes.py", line 10, in <module>
from pip._internal.utils.misc import read_chunks
File "/usr/lib/python3.7/site-packages/pip/_internal/utils/misc.py", line 24, in <module>
from pip._vendor.retrying import retry # type: ignore
ModuleNotFoundError: No module named 'pip._vendor.retrying'
The relevant directory seems to exist and to anycodings_pip be owned by the right package
$ ls / usr / lib / python3 .7 / site - packages / pip / _vendor __init__.py __pycache__ $ sudo pacman - Qo / usr / lib / python3 .7 / site - packages / pip / _vendor / usr / lib / python3 .7 / site - packages / pip / _vendor / is owned by python - pip 19.0 .3 - 1
You can try to reinstall the broken pip anycodings_python-3.x directly from python (or python3) rather anycodings_python-3.x than using the system package manager anycodings_python-3.x (pacman). Note sure about Arch Linux, anycodings_python-3.x but for me it solved the similar issue anycodings_python-3.x (ModuleNotFoundError: No module named anycodings_python-3.x 'pip._vendor.retrying') on Ubuntu 16.04:
$ sudo python - m pip install--upgrade pip
Ignore .dist-info directories if the stem is not a valid Python distribution name, so they don’t show up in e.g. pip freeze. (#7269),Fix pip install --pre for packages with pre-release build dependencies defined both in pyproject.toml’s build-system.requires and setup.py’s setup_requires. (#10222),Fixed a bug with pip install --download and editable packages, where directories were being set with 0000 permissions, now defaults to 755.,Add --not-required option to pip list, which lists packages that are not dependencies of other packages.
ERROR: Cannot uninstall foobar 0.1, RECORD file not found.You might be able to recover from this via: 'pip install --force-reinstall --no-deps foobar==0.1'.
ERROR: Cannot uninstall foobar 0.1, RECORD file not found.Hint: The package was installed by rpm.
$ curl - O https: //raw.github.com/pypa/pip/master/contrib/get-pip.py
$ python get - pip.py
pip install git + https: //github.com/pypa/pip/