xin.chen
xin.chen

Reputation: 986

Python 3.8 how to install pip No module named pip

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

Answers (3)

jwielink
jwielink

Reputation: 111

Python comes with ensurepip module which you can use to install python:

python3.8 -m ensurepip --upgrade

Upvotes: 0

Roy
Roy

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

ccl
ccl

Reputation: 2378

The following worked for me:

sudo apt update

Python3: sudo apt install python3-pip Python2: sudo apt install python-pip

Upvotes: 1

Related Questions