我试图从要求.txt把我的树莓皮归档。这在我最初测试的ubuntuvm映像上运行得很好,所以我有点困惑。在
当我运行pip3 install -r requirements.txt
Collecting coverage
Downloading https://www.piwheels.org/simple/coverage/coverage-4.5.1-cp35-cp35m-linux_armv6l.whl (208kB)
100% |████████████████████████████████| 215kB 131kB/s
Collecting Django
Downloading Django-2.0.4-py3-none-any.whl (7.1MB)
100% |████████████████████████████████| 7.1MB 8.9kB/s
....
输出中没有错误,因此我添加了-v
标志并再次运行:
pip3 install -v -r requirements.txt
几乎相同的输出,包含了所有您期望的关于找到正确的包、连接到源代码等等的内容
要确认没有安装任何程序包,请执行以下操作:
pip3 show <pick a package from my requirements.txt file>
它只返回一个没有输出的提示。在
所以,我只是下载软件包而不是安装它们?怎么回事?在
这是我的需求文件:
^{pr2}$但是,如果我尝试一个接一个地安装软件包,它会很好地工作:
> pip install certifi
Collecting certifi
Downloading certifi-2018.1.18-py2.py3-none-any.whl (151kB)
100% |████████████████████████████████| 153kB 187kB/s
Installing collected packages: certifi
Successfully installed certifi-2018.1.18
所以,我不认为这是一个依赖性问题。在
这里是完整的输出,请注意,我已经尝试过运行过一次,并且下载了包,我手动运行了pip install certifi
&;pip install chardet
来显示命令在每次只安装一个包时的工作情况:
root@omniscanner:~# pip3 install -r /opt/omnicron-scanner/requirements.txt
Collecting certifi==2017.11.5 (from -r /opt/omnicron-scanner/requirements.txt (line 1))
Using cached certifi-2017.11.5-py2.py3-none-any.whl
Requirement already satisfied: chardet==3.0.4 in /usr/local/lib/python3.5/dist-packages (from -r /opt/omnicron-scanner/requirements.txt (line 2))
Collecting coverage==4.4.2 (from -r /opt/omnicron-scanner/requirements.txt (line 3))
Using cached https://www.piwheels.org/simple/coverage/coverage-4.4.2-cp35-cp35m-linux_armv6l.whl
Collecting Django==2.0.1 (from -r /opt/omnicron-scanner/requirements.txt (line 4))
Using cached Django-2.0.1-py3-none-any.whl
Collecting gitdb2==2.0.3 (from -r /opt/omnicron-scanner/requirements.txt (line 5))
Using cached gitdb2-2.0.3-py2.py3-none-any.whl
Collecting GitPython==2.1.9 (from -r /opt/omnicron-scanner/requirements.txt (line 6))
Using cached GitPython-2.1.9-py2.py3-none-any.whl
Collecting gunicorn==19.7.1 (from -r /opt/omnicron-scanner/requirements.txt (line 7))
Using cached gunicorn-19.7.1-py2.py3-none-any.whl
Collecting idna==2.6 (from -r /opt/omnicron-scanner/requirements.txt (line 8))
Using cached idna-2.6-py2.py3-none-any.whl
Collecting netifaces==0.10.6 (from -r /opt/omnicron-scanner/requirements.txt (line 9))
Using cached https://www.piwheels.org/simple/netifaces/netifaces-0.10.6-cp35-cp35m-linux_armv6l.whl
Collecting nose==1.3.7 (from -r /opt/omnicron-scanner/requirements.txt (line 10))
Using cached nose-1.3.7-py3-none-any.whl
Collecting psycopg2==2.7.3.2 (from -r /opt/omnicron-scanner/requirements.txt (line 11))
Using cached https://www.piwheels.org/simple/psycopg2/psycopg2-2.7.3.2-cp35-cp35m-linux_armv6l.whl
Collecting python-nmap==0.6.1 (from -r /opt/omnicron-scanner/requirements.txt (line 12))
Using cached https://www.piwheels.org/simple/python-nmap/python_nmap-0.6.1-py3-none-any.whl
Collecting pytz==2017.3 (from -r /opt/omnicron-scanner/requirements.txt (line 13))
Using cached pytz-2017.3-py2.py3-none-any.whl
Collecting requests==2.18.4 (from -r /opt/omnicron-scanner/requirements.txt (line 14))
Using cached requests-2.18.4-py2.py3-none-any.whl
Collecting simplejson==3.13.2 (from -r /opt/omnicron-scanner/requirements.txt (line 15))
Using cached https://www.piwheels.org/simple/simplejson/simplejson-3.13.2-cp35-cp35m-linux_armv6l.whl
Collecting smmap2==2.0.3 (from -r /opt/omnicron-scanner/requirements.txt (line 16))
Using cached smmap2-2.0.3-py2.py3-none-any.whl
Collecting urllib3==1.22 (from -r /opt/omnicron-scanner/requirements.txt (line 17))
Using cached urllib3-1.22-py2.py3-none-any.whl
Collecting xml2json==0.1 (from -r /opt/omnicron-scanner/requirements.txt (line 18))
Could not find a version that satisfies the requirement xml2json==0.1 (from -r /opt/omnicron-scanner/requirements.txt (line 18)) (from versions: 1.1)
No matching distribution found for xml2json==0.1 (from -r /opt/omnicron-scanner/requirements.txt (line 18))
目前没有回答
相关问题 更多 >
编程相关推荐