【问题标题】:How can i download requirements.txt?我如何下载 requirements.txt?
【发布时间】: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

怎么了?错过了什么。

【问题讨论】:

标签: python pip command-prompt requirements.txt


【解决方案1】:

如果你的机器上安装了 pip,可能是因为在你的环境变量中没有找到它,并且 windows 无法识别你试图通过“pip”说什么。你必须告诉它在哪里可以找到它。

要将其添加到您的路径中,请转到控制面板/设置中的高级系统设置。然后 Environment Variables > System Variables > Path > 双击 value 部分,并在新行中输入您的 pip 二进制文件的位置(可能是 C:\Python33\Scripts,但您可能有其他路径)。

【讨论】:

    猜你喜欢
    • 2021-09-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-11-14
    • 2021-06-28
    • 2021-07-08
    • 1970-01-01
    相关资源
    最近更新 更多