我正在尝试安装pip包PIL.但是安装不起作用会抛出以下错误.
Could not find a version that satisfies the requirement pil (from xhtml2pdf==0.0.4->-r virtualenv-reqs.txt (line 16)) (from versions: )
Some externally hosted files were ignored as access to them may be unreliable (use --allow-external pil to allow).
No matching distribution found for pil (from xhtml2pdf==0.0.4->-r virtualenv-reqs.txt (line 16))
Run Code Online (Sandbox Code Playgroud)
当我有一个旧版本的pip时安装确实有效,但是使用当前版本的pip 7.1.2我无法下载该软件包.我使用以下命令来安装pip包
pip install --timeout=1000 -i http://pypi.ksjc.sh.colo/simple --trusted-host pypi.ksjc.sh.colo -r virtualenv-reqs.txt
Run Code Online (Sandbox Code Playgroud)
这有什么问题.我认为这可能是一个SSL问题,这就是我添加--trusted-host标志的原因.是否有任何方式将该--allow-external标志用于该virtualenv-reqs文件.