Reputation: 986
system: ubuntu already: python2.7 python3.5 python3.6
install python3.8
pip install django
raise error No module named pip
i use
wget https://bootstrap.pypa.io/get-pip.py
sudo python3.8 get-pip.py
fail
Upvotes: 0
Views: 1641
Reputation: 111
Python comes with ensurepip
module which you can use to install python:
python3.8 -m ensurepip --upgrade
Upvotes: 0
Reputation: 1
You must specify the version of python you are using if your system is referenced to the default (which I'm guessing is python 2)
$python3.8 -m pip install foo
Upvotes: 0
Reputation: 2378
The following worked for me:
sudo apt update
Python3: sudo apt install python3-pip
Python2: sudo apt install python-pip
Upvotes: 1