Python Forum
Running into errors when installing pip and pip3 on python 2.7 and python 3.6
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Running into errors when installing pip and pip3 on python 2.7 and python 3.6
#1
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.
Reply
#2
Bug report alternative pyenv Simple Python Version Management.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  No Internet connection when running a Python script basil_555 8 443 Mar-11-2024, 11:02 AM
Last Post: snippsat
Question Running Python script through Task Scheduler? Winfried 8 340 Mar-10-2024, 07:24 PM
Last Post: Winfried
  Help Running Python Script in Mac OS emojistickers 0 306 Nov-20-2023, 01:58 PM
Last Post: emojistickers
  When does Python detect Errors? stamp1t 1 401 Oct-21-2023, 05:53 PM
Last Post: deanhystad
  Trouble with installing python domingo251 2 563 Sep-23-2023, 12:03 AM
Last Post: ICanIBB
  Python Launcher Pops Up When Py-based App Is Running (Mac) radix_optimus 0 506 Sep-18-2023, 09:22 AM
Last Post: radix_optimus
  Installing python packages in a virtual environment Led_Zeppelin 1 714 Aug-15-2023, 08:18 PM
Last Post: deanhystad
  Advice for installing python app from github ? Adi44 6 1,117 Aug-07-2023, 06:34 PM
Last Post: snippsat
  Is it possible to capture live running waveforms in an oscilloscope using python? Girishbabu_27 4 923 Jul-29-2023, 06:05 AM
Last Post: Girishbabu_27
  Installing Python 3.8.11 from TGZ File michaelnicol 2 2,026 Jul-07-2023, 08:21 AM
Last Post: DeaD_EyE

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020