Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
unable to run pip
#11
or

sudo apt install awscli
Reply
#12
Typically error messages when pip is broken.
So should fix pip and no try to install missing packages it point to.
Also as info you are using Python that comes with Ubuntu as it point to dist-packages,
if had compile Python version yourself or other solution like eg pyenv it would have use site-packages directory.

Internal solution ensurepip don't talk to internet.
sudo python3 -m ensurepip --upgrade  
Using get-pip.py this will get a new version of pip,setuptools, and wheel.
curl -sS https://bootstrap.pypa.io/get-pip.py | sudo python3
Or
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py --force-reinstall
Reply
#13
(Jun-10-2022, 07:59 AM)Axel_Erfurt Wrote: or

sudo apt install awscli

unfortunately, the version of awscli in the Ubuntu repository is too old and lacks some new features i need. AWS keeps the version in PYPI up to date.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#14
(Jun-10-2022, 04:27 AM)Gribouillis Wrote: Now how about
Output:
sudo apt install python3-retrying
?
Am I the only one who can read the console output?

i didn't want to keep picking new package names and trying each. i just want to remove pip and install it. it should then bring in all its dependencies. maybe Ubuntu repackaged it wrong.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#15
now i learn the difference between dist-packages and site-packages. i have been trying to make a script to put my modules into the system-wide location, and this difference has kept me confused.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#16
now what:
Output:
Traceback (most recent call last): File "/usr/local/bin/pip", line 5, in <module> from pip._internal.cli.main import main File "/lib/python3/dist-packages/pip/_internal/cli/main.py", line 10, in <module> from pip._internal.cli.autocompletion import autocomplete File "/lib/python3/dist-packages/pip/_internal/cli/autocompletion.py", line 9, in <module> from pip._internal.cli.main_parser import create_main_parser File "/lib/python3/dist-packages/pip/_internal/cli/main_parser.py", line 7, in <module> from pip._internal.cli import cmdoptions File "/lib/python3/dist-packages/pip/_internal/cli/cmdoptions.py", line 31, in <module> from pip._internal.utils.ui import BAR_TYPES File "/lib/python3/dist-packages/pip/_internal/utils/ui.py", line 15, in <module> from pip._vendor.progress import HIDE_CURSOR, SHOW_CURSOR ModuleNotFoundError: No module named 'pip._vendor.progress'
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#17
i just did a purge and re-install of pip. anyone know why the Ubuntu pip package is not bring in all of its dependencies?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#18
Read the comments at the top of this file, this may help
Output:
less /lib/python3/dist-packages/pip/_vendor/__init__.py
This may be the answer
Quote:This
# is done to support downstream re-distributors like Debian and Fedora who
# wish to create their own Wheels for our dependencies to aid in debundling.
Reply
#19
i gave up on this and will try to download it from github. looks like one of the links was a big binary file that began with "#!/usr/bin/env python3.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#20
If pip3 is not present in an (Ubuntu) distribution, it is installed normally with the command

sudo apt install python3-pip

This will also install all dependencies.
Reply


Forum Jump:

User Panel Messages

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