Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

E: Package 'python-pip' has no installation candidate

$ sudo apt-get install python-pip
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package python-pip is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  python3-pip

both my pip and pip3 are installed in python 3

pip -V
pip 20.1.1 from /usr/lib/python3/dist-packages/pip (python 3.8)


pip3 -V
pip 20.1.1 from /usr/lib/python3/dist-packages/pip (python 3.8)

Now i cant install pip ...it shows above error

like image 357
daniel lugo Avatar asked Oct 03 '20 18:10

daniel lugo


People also ask

What does pip install E does?

pip install -e . This will install the current package in your Python environment in an editable mode. You can keep changing this package at its source directory and your changes will be immediately reflected in your environment.

How do I manually install pip in Python?

Step 1: Download the get-pip.py (https://bootstrap.pypa.io/get-pip.py) file and store it in the same directory as python is installed. Step 2: Change the current path of the directory in the command line to the path of the directory where the above file exists. Step 4: Now wait through the installation process.


Video Answer


1 Answers

If you have python(python2) installed you then you can use following command to install pip(for python2).

curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py
python get-pip.py

Now you can check for pip2

pip2 --version

I hope these will help you

like image 157
Shingala_Yagnik Avatar answered Sep 18 '22 19:09

Shingala_Yagnik