WikiTeam / wikiteam

Tools for downloading and preserving wikis. We archive wikis, from Wikipedia to tiniest wikis. As of 2024, WikiTeam has preserved more than 600,000 wikis.
https://github.com/WikiTeam
GNU General Public License v3.0
730 stars 151 forks source link

Command 'pip' not found, but there are 18 similar ones. #389

Closed robkam closed 4 years ago

robkam commented 4 years ago

On Ubuntu 20.04 with Python 2.7 entering pip gives: Command 'pip' not found, but there are 18 similar ones.

entering python2.7 -m pip gives: /usr/bin/python2.7: No module named pip

entering sudo apt install python-pip gives:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package python-pip
robkam commented 4 years ago

Fixed with the following, (more or less):

sudo apt update && sudo apt upgrade -y
sudo apt install python2
sudo apt install python2-dev
sudo apt install curl
curl https://bootstrap.pypa.io/3.4/get-pip.py | sudo python2.7
git clone https://github.com/WikiTeam/wikiteam.git
sudo pip2 install --upgrade -r wikiteam/requirements.txt

The bootstrapping script get-pip.py "enables users to install pip, setuptools, and wheel in Python environments that don't already have them".