我在机器10.x.x.x上创建了一个python存储库,它可以通过Web浏览器访问(设置Apache服务器)。
我正在验证其在不同机器上的成功操作,但是由于下面提到的错误而失败了
[root@localhost ~]# pip install --index-url=http://10.x.x.x/repos/python/python2 -r requirement.txt --trusted-host 10.x.x.x
Looking in indexes: http://10.x.x.x/repos/python/python2
Collecting Flask==1.0.2 (from -r requirement.txt (line 1))
Could not find a version that satisfies the requirement Flask==1.0.2 (from -r requirement.txt (line 1)) (from versions: )
No matching distribution found for Flask==1.0.2 (from -r requirement.txt (line 1))
[root@localhost ~]#
需求文件包含
[root@localhost ~]# cat requirement.txt
Flask==1.0.2
[root@localhost ~]#
Python版本是2.7.5,存储库机器和测试机器上的pip版本如下:
# pip -V
pip 10.0.1 from /usr/lib/python2.7/site-packages/pip-10.0.1-py2.7.egg/pip (python 2.7)
[root@localhost ~]#
有关如何解决此问题的任何想法?