Error using the pip command

0

Goodbye everyone, doing a proof of concept at home I found that when using the command "pip3 install -r requeriments.txt" I missed the following error:

No command 'pip3' found, did you mean:
Command 'pip' from package 'python-pip' (universe)
pip3: command not found

Apparently it is a bug related to python and then I installed everything necessary to suggest the use of the pip command but still I am still giving the same error.

I'm on a virtual machine with ubuntu 12.04 (x64). Could someone explain the fault?

    
asked by Alejandro Sánchez 25.10.2017 в 11:26
source

1 answer

0

Pip is a command to install python packages, depending on how you install it you need to use 'pip' 'pip2' or 'pip3'

Normally pip3 installs packages in python3 dist-packages, pip2 installs packages in python2 dist-packages, and pip the first one that was installed (you could have several versions of python2 and python3)

You can use pip using:

python3 -m pip install package

To see if any of the pythons you have is giving you problems you can use the command:

ls /usr/local/lib | grep python

That will tell you which versions of python you have installed

    
answered by 26.10.2017 в 18:00