无法使用 pip install requments.txt 进行安装

我正在尝试使用 requments.txt 安装用于 Python 2.7的 比特龙卷风,我得到了以下错误:

Collecting requirements.txt
Could not find a version that satisfies the requirement requirements.txt (from versions: )
No matching distribution found for requirements.txt

下面是我在 requments.txt 中的代码:

-e git+https://github.com/effigies/BitTornado.git#egg=python2.7

我也尝试了 -e git + https://github.com/effigies/BitTornado.git@python2.7,但仍然无法工作。有人知道为什么会发生这种情况吗?

注意: “ python2.7”是分支名称

提前感谢

117015 次浏览

The correct command is pip install -r requirements.txt. Note the -r option; without it, pip thinks you want to install a package named requirements.txt, which doesn't exist.

You forgot to add -r switch to specify that requirements.txt is the file with your dependencies.