Pip 安装 - “无效要求”

And*_*ein 0 python pip

我在终端中运行以下命令:

pip install -r requirements-dev.txt
Run Code Online (Sandbox Code Playgroud)

我收到以下错误:

Invalid requirement: 'nose=1.3.7'
= is not a valid operator. Did you mean == ?
Run Code Online (Sandbox Code Playgroud)

requirements-dev.txt 看起来像这样:

nose=1.3.7
pyflakes=0.9.2
pep8=1.5.6
Run Code Online (Sandbox Code Playgroud)

为什么我收到这个错误?我对 pip 命令不太熟悉。

Mos*_*oye 5

pip没有=在其规范中指定任何行为,而是==(您打算)称为版本匹配等。

供您以后使用,8.1 版中所有当前可用的版本说明符是:

版本匹配 ==

兼容版本 ~=

版本排除 !=

独家有序比较<>

包含有序比较<=>=

任意平等 ===