Python in VSCode - PIP Error (cmd not found)

71 views Asked by At

Help Me! I'm new! I've been using Python Idle for learning basics but decided to switch to VSCode as a Harvard Professor advised in his tutorial for convenience.

Q. Trying to Import the Basic Cowsay module using PIP (cmd in VSC Terminal: pip install cowsay), getting an ERROR (bash: pip: cmd not found). What am I doing wrong?

Installed Python Extensions in VSCode Tried creating a New File - X Tried installing the module directly - X Still getting error

3

There are 3 answers

2
Sajad Malik On BEST ANSWER

You need to install PIP seperately.

First you need to download the file get-pip.py for open up terminal or command prompt and then run the below command:

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

After that, based on your Operating system you can try the below:

Linux & Mac:

python get-pip.py

Windows:

py get-pip.py
1
Arnold Raphael On

You can try manual installation by visiting to pip manual installation; download the script, then navigate to the folder having that script cd your_folderName and run

python get-pip.py

0
toyota Supra On

The correct to install. Released: Mar 16, 2024

py - m pip install python-cowsay