I met the same issue with python 3.5.2 and pip3 (9.0.1). And I fixed it by following this workaround: https://github.com/pypa/setuptools/issues/885#issuecomment-307696027
More specifically, I edited line #2121~2122 of this file: “sudo vim /usr/local/lib/python3.5/dist-packages/pip/_vendor/pkg_resources/__init__.py”
#orig_path.sort(key=position_in_sys_path) #module.__path__[:] = [_normalize_cached(p) for p in orig_path] orig_path_t = list(orig_path) orig_path_t.sort(key=position_in_sys_path) module.__path__[:] = [_normalize_cached(p) for p in orig_path_t]
Related Posts:
- How do I update\upgrade pip itself from inside my virtual environment?
- How to install pip with Python 3?
- bash: pip: command not found
- How to uninstall a package installed with pip install –user
- ImportError: No module named pip
- How do I install pip on macOS or OS X?
- How can I install pip on Windows?
- ImportError: No module named tensorflow
- Where is BeautifulSoup4 hiding?
- Where does pip install its packages?
- Where does pip install its packages?
- How to install python3 version of package via pip on Ubuntu?
- Could not find a version that satisfies the requirement tensorflow
- “Defaulting to user installation because normal site-packages is not writeable” python message
- Could not find a version that satisfies the requirement tensorflow
- How to install pytorch in Anaconda with conda or pip?
- Can’t fix “zipimport.ZipImportError: can’t decompress data; zlib not available” when I type in “python3.6 get-pip.py”
- Configuring so that pip install can work from github
- import opencv vs import cv2
- No module named ‘psycopg2’
- How to pip or easy_install tkinter on Windows
- Error after upgrading pip: cannot import name ‘main’
- filename.whl is not supported wheel on this platform
- Why do I get AttributeError: ‘NoneType’ object has no attribute ‘something’?
- Permission denied error by installing matplotlib
- Updating matplotlib in virtualenv with pip
- ImportError: cannot import name main when running pip –version command in windows7 32 bit
- filename.whl is not a supported wheel on this platform
- bash: pip: command not found
- Why am I getting AttributeError: Object has no attribute?
- How to install pip3 on Windows?
- “ImportError: no module named ‘requests'” after installing with pip
- How do I install the yaml package for Python?
- ModuleNotFoundError: No module named ‘matplotlib’
- error: Unable to find vcvarsall.bat
- error: Unable to find vcvarsall.bat
- AttributeError: Module Pip has no attribute ‘main’
- pg_config executable not found
- Can I force pip to reinstall the current version?
- How can I install Python’s pip3 on my Mac?
- Removing pip’s cache?
- Could not find a version that satisfies the requirement
- No module named pkg_resources
- What is the purpose of “pip install –user …”?
- How to upgrade all Python packages with pip
- How do I remove all packages installed by PIP?
- AttributeError(“‘str’ object has no attribute ‘read'”)
- What is the easiest way to remove all packages installed by pip?
- How to get pip to work behind a proxy server
- ‘pip3’ is not recognized as an internal or external command, operable program or batch file
- Why Python 3.6.1 throws AttributeError: module ‘enum’ has no attribute ‘IntFlag’?
- Using Pip to install packages to Anaconda Environment
- How to install multiple python packages at once using pip
- How are Pipfile and Pipfile.lock used?
- Checking whether pip is installed?
- AttributeError: Module Pip has no attribute ‘main’
- pg_config executable not found
- ‘Pip’ is Not Recognized as an Internal or External Command windows 10 CMD
- How to reinstall a pip package even if it exists
- How can I install Python’s pip3 on my Mac?
- No module named “Torch”
- AttributeError(“‘str’ object has no attribute ‘read'”)
- AttributeError: ‘module’ object has no attribute
- Why does “pip install” inside Python raise a SyntaxError?
- ‘pip install’ fails for every package (“Could not find a version that satisfies the requirement”) [duplicate]
- How do I install a pip package globally instead of locally?
- Pipenv: Command Not Found
- Pip – Fatal error in launcher: Unable to create process using ‘”‘
- python pip on Windows – command ‘cl.exe’ failed
- pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available
- pip: no module named _internal
- ImportError: No module named ‘yaml’
- How to run Pip commands from CMD
- How to install PyGame on Python 3.4?
- Python NameError, variable ‘not defined’
- Django Rest Framework — no module named rest_framework
- AttributeError: ‘Series’ object has no attribute ‘reshape’
- python NameError: name ‘file’ is not defined
- ImportError: No module named ‘django.core.urlresolvers’
- ImportError: No module named Crypto.Cipher
- How to Install pip for python 3.7 on Ubuntu 18?
- How to fix error “ERROR: Command errored out with exit status 1: python.” when trying to install django-heroku using pip
- Unable to resolve ‘requests’. IntelliSense may be missing for this module. Visual Studio/Python
- How to change pip installation path
- pip throws TypeError: parse() got an unexpected keyword argument ‘transport_encoding’ when trying to install new packages
- Could not install packages due to an EnvironmentError: [Errno 13]
- ERROR: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly
- How to install Openpyxl with pip
- Failed building wheel for Twisted in Windows 10 python 3
- Install py2exe for python 2.7 over pip: this package requires Python 3.3 or later
- How to install NumPy for Python 3.6
- How to resolve “ImportError: DLL load failed:” on Python?
- How to install numpy to Python 3.5?
- Install pip for python 3.5
- How to install PyQt4 on Windows using pip?
- How do I install pip on macOS or OS X?
- How to install PyQt4 on Windows using pip?
- Pip: could not find a version. No matching distribution found
- File “/usr/bin/pip”, line 9, in
from pip import main ImportError: cannot import name main - How do I list the files associated with a Python package installed using pip or easy_install?