Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS Code Python pip is not recognized

I just switched from PyCharm to VSCode, and when I try to pip install X, I get the following message:

pip : The term 'pip' is not recognized as the name of a cmdlet, function, 
script file, or operable program. Check the spelling of the name, or if a      
path was included, verify that the path is correct and try again.
At line:1 char:1
+ pip install discord
+ ~~~
    + CategoryInfo          : ObjectNotFound: (pip:String) [], CommandNotFoun  
   dException
    + FullyQualifiedErrorId : CommandNotFoundException

I already updated the PATH, and when I do "echo %PATH%" on Command Prompt, I get the exact same directory as my PyCharm PATH directory. Why VSCode doesn't work, while PyCharm works flawless?

My PATH on cmd: "C:\Users\USERNAME\AppData\Local\Programs\Python\Python37-32\Scripts"

like image 621
yucecoder Avatar asked Apr 19 '20 20:04

yucecoder


1 Answers

Try using python -m pip instead of pip.

like image 101
wakonda56 Avatar answered Sep 17 '22 00:09

wakonda56