
* Remove cross/PyNaCl - converted to requirement-crossenv.txt * Remove cross/pycryptodomex - converted to requirement-crossenv.txt * Remove cross/pycryptodome - converted to requirement-crossenv.txt * Remove cross/pillow - converted to requirement-crossenv.txt * Remove cross/asyncstdlib - converted to requirement-crossenv.txt
#Pip3 upgrade package install
Sudo pip install -upgrade pip -index-url= Python -c "import urllib2 exec(urllib2.urlopen('').read())" Python -c "import urllib.request exec(('').read())" bash shell works for this, I have never tested with other shells! Pip3 install -upgrade -force-reinstall -ignore-installed urllib3=1.25.3Ĭ:\Users\Ron\AppData\Local\Programs\Python\Python39Ĭ:\>cd C:\Users\Ron\AppData\Local\Programs\Python\Python39 Pip 9.0.1 from /home/myhomedir/myvirtualenvdir/lib/python3.4/site-packages (python 3.4)ĮRROR: Could not install packages due to an EnvironmentError: Permission denied: '/usr/local/bin/pip'Ĭonsider using the `-user` option or check the permissions. Pip 9.0.1 from /home/myhomedir/myvirtualenvdir/lib/python2.7/dist-packages (python 2.7) How do I update/upgrade pip itself from inside my virtual environment? Sudo dpkg -i python3-setuptools_45.2.0-1_all.deb Python3-setuptools is already the newest version (45.2.0-1).Ġ upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)ĪttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'Ĭ:\WINDOWS\system32>python -m pip install slateĬ:\WINDOWS\system32>python -m pip install įrom pkg_resources import load_entry_pointįile "/home/myuser/.local/lib/python3.7/site-packages/pkg_resources.py", line

Python3 -m pip install -upgrade pip setuptools wheelĭownloading distribute-0.7.3.zip (145 kB)ĮRROR: Command errored out with exit status 1:Ĭommand: /var/lang/bin/python -c 'import sys, setuptools, tokenize sys.argv = '"'"'/tmp/pip-install-ssqyqflj/distribute/setup.py'"'"' _file_='"'"'/tmp/pip-install-ssqyqflj/distribute/setup.py'"'"' f=getattr(tokenize, '"'"'open'"'"', open)(_file_) code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"') f.close() exec(compile(code, _file_, '"'"'exec'"'"'))' egg_info -egg-base /tmp/pip-pip-egg-info-hgbjn0jsĬwd: /tmp/pip-install-ssqyqflj/distribute/įile "/tmp/pip-install-ssqyqflj/distribute/setuptools/_init_.py", line 2, in įrom setuptools.extension import Extension, Libraryįile "/tmp/pip-install-ssqyqflj/distribute/setuptools/extension.py", line 5, in įrom setuptools.dist import _get_unpatchedįile "/tmp/pip-install-ssqyqflj/distribute/setuptools/dist.py", line 7, in įrom import installįile "/tmp/pip-install-ssqyqflj/distribute/setuptools/command/_init_.py", line 8, in įrom mand import install_scriptsįile "/tmp/pip-install-ssqyqflj/distribute/setuptools/command/install_scripts.py", line 3, in įrom pkg_resources import Distribution, PathMetadata, ensure_directoryįile "/tmp/pip-install-ssqyqflj/distribute/pkg_resources.py", line 1518, in Register_loader-type(importlib_bootstrap.SourceFileLoader, DefaultProvider)ĪttributeError: module "importlib._bootstrap" has no attribute "SourceFileLoader" Quick fix: Don't run pip/ pip3 any more, but instead always use python -m pip/ python3 -m pip, which will not use the now incompatible executable scripts provided from your system's package manager, or don't upgrade your pip/ pip3 version to 10 or higher.Previous Post Next Post sudo apt-get install python3-pipįile "/usr/lib/python3/dist-packages/pkg_resources.py", line 1479, in See Error after upgrading pip: cannot import name 'main' on Stack Overflow for details.

It's important to upgrade the version for Python 3 first, because the one you upgrade last will later be accessible through pip, which must be pip2 by default.Īs of pip version 10 (I think), the pip/ pip3 command is broken, due to a change in the package structure which is not compatible with the launch scripts provided from the python-pip/ python3-pip packages from apt. Note that I upgrade both pips for Python 2 and Python 3. Or you can upgrade it for your user only using the -user option: pip3 install -upgrade -user pip You can either upgrade pip globally using sudo: sudo pip3 install -upgrade pip
