【发布时间】:2017-11-24 12:21:55
【问题描述】:
我以非 root 用户身份使用 qpython,我已经用谷歌搜索了它,但所有建议都不能手动和使用 pip...我不断收到错误...
同时使用这两种方法时会出错:
pip install requests 来自 pip 控制台
和:
import pip
pip.main(['install','requests']) 在 python 控制台上
错误类似于:
cannot fetch base url https://pypi.python.org/simple/
could not find any downloads that satisfy the condition requests
...
如果有解决方法或修复方法,我很乐意接受...
【问题讨论】:
-
似乎您正坐在代理后面,因为
pip无法访问 PyPI 存储库。如果您通过curl请求网站,例如$ curl -IL https://pypi.python.org/,您会收到 HTTP 200 回复吗? -
我在安卓上,所以这不起作用...找不到卷曲
-
好的,然后试试
ping https://pypi.python.org/。虽然安卓开发者肯定应该安装busybox。