unable to run pip - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: General (https://python-forum.io/forum-1.html) +--- Forum: News and Discussions (https://python-forum.io/forum-31.html) +--- Thread: unable to run pip (/thread-37425.html) |
RE: unable to run pip - Axel_Erfurt - Jun-10-2022 or sudo apt install awscli
RE: unable to run pip - snippsat - Jun-10-2022 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 --upgradeUsing get-pip.py this will get a new version of pip,setuptools, and wheel. curl -sS https://bootstrap.pypa.io/get-pip.py | sudo python3Or curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py python get-pip.py --force-reinstall RE: unable to run pip - Skaperen - Jun-10-2022 (Jun-10-2022, 07:59 AM)Axel_Erfurt Wrote: or 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. RE: unable to run pip - Skaperen - Jun-10-2022 (Jun-10-2022, 04:27 AM)Gribouillis Wrote: Now how about 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. RE: unable to run pip - Skaperen - Jun-10-2022 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.
RE: unable to run pip - Skaperen - Jun-14-2022 now what:
RE: unable to run pip - Skaperen - Jun-14-2022 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? RE: unable to run pip - Gribouillis - Jun-14-2022 Read the comments at the top of this file, this may help This may be the answerQuote:This RE: unable to run pip - Skaperen - Jun-15-2022 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. RE: unable to run pip - Axel_Erfurt - Jun-15-2022 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. |