Luc*_*838 4 python django pip python-3.x
我一直无法下载任何软件包,pip并且我不断收到有关确认 SSL 证书问题的相同错误。我目前在我大学的网络上,我的笔记本电脑上也安装了 Anaconda。我不确定这两个因素是否与这个问题有关。
我正在使用pythonversion 3.7.0、pipversion9.0.1和pip3version 10.0.1。
当我pip install django在终端中输入时,我得到以下结果:
Collecting django
Could not fetch URL https://pypi.python.org/simple/django/:
There was a problem confirming the ssl certificate:
[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)
- skipping
Could not find a version that satisfies the requirement django (from versions: )
No matching distribution found for django
Run Code Online (Sandbox Code Playgroud)
我已经阅读了其他几个主题。我试过这样的命令没有成功:
curl https://bootstrap.pypa.io/get-pip.py | python3
pip install --upgrade pip
pip install --trusted-host pypi.org --trusted-host \
files.pythonhosted.org django
Run Code Online (Sandbox Code Playgroud)
根据此问题,您还应该将pypi.python.org命令行添加为受信任的主机,即:
pip install --trusted-host pypi.org --trusted-host pypi.python.org \
--trusted-host files.pythonhosted.org django
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
8831 次 |
| 最近记录: |