Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why there is no python pip3.7?

Tags:

pip

My python version is 3.70. sudo python3 --version.
I installed pip3 using below command:

sudo apt install python3-pip

But while I checked pip3 version by: pip3 --version

pip 19.0.1 from /usr/local/lib/python3.4/dist-packages/pip (python 3.4)

Why it is not installing for python3.7?

like image 404
Rajesh Avatar asked Feb 23 '19 13:02

Rajesh


People also ask

Does Python come with pip3?

Python 3.4+ in most operating systems includes pip3 by default. If your python version is less than 3.4, then you should upgrade your Python version which will automatically install pip3.

How do I fix pip3 not found?

A “pip: command not found” error occurs when you fail to properly install the package installer for Python (pip) needed to run Python on your computer. To fix it, you will either need to re-install Python and check the box to add Python to your PATH or install pip on your command line.

Is Python3 pip the same as pip3?

Pip3 is the Python3 version of pip. If you use pip, then only the python2. 7 version will be installed. You have to use pip3 for it to be installed on Python3.


2 Answers

try the commands mentioned below:

  1. apt install -y python3-pip.

  2. python3.7 -m pip install --upgrade pip

like image 131
Ankit Gupta Avatar answered Sep 19 '22 23:09

Ankit Gupta


if you have your python3.7 already installed, you can set an alias for pip within .bashrc, so that you can simply use pip install ... and be sure that it will install to 3.7

in terminal write gedit /home/$your_user_name$/.bashrc

then add somwhere in the top alias pip3.7='python3.7 -m pip' or alias pip='python -m pip'

like image 36
Aidos Avatar answered Sep 21 '22 23:09

Aidos