gpt4 book ai didi

python - 无法识别 VS Code Python pip

转载 作者:行者123 更新时间:2023-12-03 16:49:10 26 4
gpt4 key购买 nike

我刚刚从 PyCharm 切换到 VSCode,当我尝试 pip install X 时,我收到以下消息:

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

我已经更新了 PATH,当我在命令提示符下执行“echo %PATH%”时,我得到了与我的 PyCharm PATH 目录完全相同的目录。为什么 VSCode 不工作,而 PyCharm 工作完美?

我在 cmd 上的路径:“C:\Users\USERNAME\AppData\Local\Programs\Python\Python37-32\Scripts”

最佳答案

尝试使用 python -m pip而不是 pip .

关于python - 无法识别 VS Code Python pip,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61311501/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com