- 产生这个问题的原因呢和github一样,因为他们用的cdn不能用了,可使用代理解决
pip install -r requirements.txt
Collecting asgiref==1.1.2 (from -r requirements.txt (line 2))
Could not fetch URL https://pypi.python.org/simple/asgiref/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) - skipping
Could not find a version that satisfies the requirement asgiref==1.1.2 (from -r requirements.txt (line 2)) (from versions: )
No matching distribution found for asgiref==1.1.2 (from -r requirements.txt (line 2))
- 命令如下
pip --trusted-host pypi.doubanio.com install -r requirements.txt -i http://pypi.doubanio.com/simple
Collecting Django==1.11.7 (from -r requirements.txt (line 1))
Downloading http://pypi.doubanio.com/packages/15/d8/b17afdcd527026d2f1acd30ac33406e6b22c0f573a3c14b2d9e0bd7df945/Django-1.11.7-py2.py3-none-any.whl (6.9MB)
100% |████████████████████████████████| 7.0MB 5.1MB/s
Collecting asgiref==1.1.2 (from -r requirements.txt (line 2))
Downloading http://pypi.doubanio.com/packages/ee/6d/67f79a9567de5ba4419c3e8d39622bed0d974d704075d09df765b5ddb5ce/asgiref-1.1.2-py2.py3-none-any.whl
- 参考文档