Skip to content
Advertisement

Ubuntu Command ‘pip’ not found, but there are 18 similar ones [closed]

I am trying to install a toolkit, I’m on WSL using ubuntu – I downloaded ubuntu yesterday. Here is what the installation process looks like for this toolkit. On windows cmd it says I have python 3.7.9 but on ubuntu its saying I have python 3.8.2

JavaScript

or:

JavaScript

pip install -e . is not working for me, I get this error:

JavaScript

however, I checked and I have pip installed, here’s what I checked for before running:

JavaScript

my PATHS:

JavaScript

Advertisement

Answer

Short answer: Try running python3 -m pip install -e .


Some explanations:

The different versions of Python are not surprising. WSL is, effectively, an ultra-lightweight virtual machine. Your Windows python installation is entirely independent of the WSL python installation.

Python has two widely used major versions, Python 2 and Python 3. The command python runs some minor version of Python 2, while the command python3 runs some minor version of Python 3. Below is my console output.

JavaScript

Pip is the python installation manager, and has the same major versions as Python. The command pip runs the Python 2 version of pip, while pip3 runs the Python 3 version of pip.

It’s better practice to use python3 -m pip over pip3, it helps ensure that you’re using the version of pip associated with the version of python you expect to run.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement