skip to Main Content

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

Answers


  1. 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
    
    Login or Signup to reply.
  2. 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

    Login or Signup to reply.
  3. The correct to install. Released: Mar 16, 2024

    py - m pip install python-cowsay
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search