Python Forum
Running into errors when installing pip and pip3 on python 2.7 and python 3.6 - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Running into errors when installing pip and pip3 on python 2.7 and python 3.6 (/thread-18098.html)



Running into errors when installing pip and pip3 on python 2.7 and python 3.6 - tej7gandhi - May-05-2019

I have tried installing and running pip but I run into error messages,when I utilize pip --version or pip3 --version.
I am also not able to install packages which are pydrive and pyinstaller,how should I proceed

Output:
pip3 --version Traceback (most recent call last): File "/usr/lib/python3/dist-packages/pip/_vendor/__init__.py", line 33, in vendored __import__(vendored_name, globals(), locals(), level=0) ModuleNotFoundError: No module named 'pip._vendor.distro' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/bin/pip3", line 9, in <module> from pip import main File "/usr/lib/python3/dist-packages/pip/__init__.py", line 22, in <module> from pip._vendor.requests.packages.urllib3.exceptions import DependencyWarning File "/usr/lib/python3/dist-packages/pip/_vendor/__init__.py", line 67, in <module> vendored("distro") File "/usr/lib/python3/dist-packages/pip/_vendor/__init__.py", line 36, in vendored __import__(modulename, globals(), locals(), level=0) File "<frozen importlib._bootstrap>", line 971, in _find_and_load File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 656, in _load_unlocked File "<frozen importlib._bootstrap>", line 626, in _load_backward_compatible File "/usr/share/python-wheels/distro-1.0.1-py2.py3-none-any.whl/distro.py", line 1051, in <module> File "/usr/share/python-wheels/distro-1.0.1-py2.py3-none-any.whl/distro.py", line 595, in __init__ File "/usr/share/python-wheels/distro-1.0.1-py2.py3-none-any.whl/distro.py", line 932, in _get_lsb_release_info subprocess.CalledProcessError: Command 'lsb_release -a' returned non-zero exit status 1.



RE: Running into errors when installing pip and pip3 on python 2.7 and python 3.6 - snippsat - May-05-2019

Bug report alternative pyenv Simple Python Version Management.