【发布时间】:2020-12-30 00:23:15
【问题描述】:
我刚刚开始学习 python,这是我的第一个项目。我正在尝试为一个简单的游戏编写一个机器人,并尝试在 vs 代码底部的终端中运行一个命令,以检查 pyautogui 是否正确安装在我的工作区中。我可以从我的计算机终端执行“pip list”,我从列表中看到 pyautogui 但 vscode 终端窗口显示
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.
在 line:1 char:1
- 点子列表
-
+ CategoryInfo : ObjectNotFound: (pip:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
感谢您的反馈
【问题讨论】:
-
你在VSCode中安装了python扩展吗?
-
是的,我知道,它只是 vscode 中的终端,它说 pip 不是公认的命令。语法工作正常。
-
你的操作系统是什么,比如windows有cmd和powershell,你用的是同一个吗?
标签: python python-3.x visual-studio-code