python-3.x “pip”是vs cood程序中的未知命令[重复]

wsewodh2  于 12个月前  发布在  Python
关注(0)|答案(1)|浏览(94)

此问题在此处已有答案

'pip' is not recognized as an internal or external command(41个回答)
6天前关闭
当我想安装cowsay库时,pip命令没有运行,我得到了这个错误

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
 ~~~
   CategoryInfo : ObjectNotFound: (pip:String) [], CommandNotFoundException
   FullyQualifiedErrorId : CommandNotFoundException

字符串
pip命令应该对我有效,cawsay库应该已经安装,但它违背了我的意愿

5sxhfpxr

5sxhfpxr1#

看起来你还没有将python添加到环境变量中。
1.在笔记本电脑的搜索栏中输入edit env变量,并将Python脚本添加到PATH中
1.更改PATH后,重新启动命令行或PowerShell会话以应用更改。
1.打开CMD并使用命令pip --version进行检查

相关问题