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?
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.
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.
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.
try the commands mentioned below:
apt install -y python3-pip.
python3.7 -m pip install --upgrade pip
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'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With