Pip3给出"找不到匹配的分布......"错误

Qub*_*bix 6 pip python-module python-3.x

我有一个reqs.txt文件,包含我需要在第二台计算机上安装的许多python要求.该文件如下所示:

alabaster==0.7.9
anaconda-client==1.6.0
anaconda-navigator==1.4.3
astroid==1.4.9
astropy==1.3
Babel==2.3.4
backports.shutil-get-terminal-size==1.0.0
beautifulsoup4==4.5.3
bitarray==0.8.1
blaze==0.10.1
...
Run Code Online (Sandbox Code Playgroud)

我在用

 pip3 install -r reqs.txt --requirement=reqs.txt
Run Code Online (Sandbox Code Playgroud)

我明白了

me@pc:~$ pip3 install -r reqs.txt --requirement=reqs.txt
Collecting alabaster==0.7.9 (from -r reqs.txt (line 1))
Using cached alabaster-0.7.9-py2.py3-none-any.whl
Collecting anaconda-client==1.6.0 (from -r reqs.txt (line 2))
Could not find a version that satisfies the requirement anaconda-client==1.6.0 (from -r reqs.txt (line 2)) (from versions: 1.1.1, 1.2.2)
No matching distribution found for anaconda-client==1.6.0 (from -r reqs.txt (line 2))
Run Code Online (Sandbox Code Playgroud)

对于该reqs.txt文件中的每个包.有任何想法吗?

编辑:reqs.txt文件是用pip freeze.创建的.即使我删除了版本号,它们仍然无法安装.但是,如果我做了一个

pip3 install alabaster
Run Code Online (Sandbox Code Playgroud)

它会安装没有问题.

Fer*_*oms 0

alabaster 在安装时没有问题,但是anaconda-client在 1.6.0 中不可用,pip3可能在您的原始环境中您有独立安装的 Anaconda,因此它的版本更好。因此,要使其pip3 install -r reqs.txt不起作用,要起作用,您可以将版本降级到 pip 中可用的版本,或者在运行命令之前在第二台计算机上安装conda环境。