【发布时间】:2021-12-25 19:37:00
【问题描述】:
在我开始讲述我的问题之前,我的命令提示符不存在。我有 Windows 10 上的 Windows Powershell。
我的文字是:
PyWavelets==0.5.2
opencv-python==3.4.3.18
seaborn==0.8.1
我做到了:
pip install -r .\requirements.txt
错误:
pip : The term 'pip' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the s
pelling 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 -r .\requirements.txt
+ ~~~
+ CategoryInfo : ObjectNotFound: (pip:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
怎么了?错过了什么。
【问题讨论】:
-
显然没有安装 pip。成为一名成功程序员的第一步是阅读和理解。
-
使用
python -m pip而不仅仅是pip。 -- stackoverflow.com/a/60349800 -- snarky.ca/why-you-should-use-python-m-pip
标签: python pip command-prompt requirements.txt