1

When I run this command in the Ubuntu terminal on Windows 10:

victor@DUMMYPC:/mnt/c/Users/user/Documents/programming$ pip show numpy

I receive this message:

Command 'pip' not found, but can be installed with:

sudo apt install python-pip

On the other hand, when I run whereis:

victor@DUMMYPC:/mnt/c/Users/user/Documents/programming$ whereis pip

The system seems to find it:

pip: /mnt/c/Users/user/AppData/Local/Continuum/miniconda3/Scripts/pip.exe

I wonder what I would have to do to fix things and have execute pip without issues from the Ubuntu terminal.

3
  • 1
    Perhaps try pip.exe show numpy. Commented Sep 4, 2019 at 13:03
  • Hey. It works. You can post the answer so I can Accept it. Thanks @Anaksunaman Commented Sep 4, 2019 at 14:04
  • And you're welcome. =) Commented Sep 4, 2019 at 14:18

1 Answer 1

1

According to this official WSL documentation from Microsoft:

WSL can invoke Windows binaries directly from the WSL command line using [binary name].exe. For example, notepad.exe.

Therefore, running pip.exe show numpy is the correct way to call pip in this instance (since pip was installed under Windows).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .