HttpsConnectionPool(host='pypi.python.org', port=443)

简介: 描述:          使用anaconda prompt输入pip install matplotlib出现HttpsConnectionPool环境:conda:4.5.2 matplotlib:3.

描述:

          使用anaconda prompt输入pip install matplotlib出现HttpsConnectionPool

环境:


conda:4.5.2

          matplotlib:3.0.2

          python3.7

          system:win10



问题:使用matplotlib时出现问题,使用conda install matplotlib提示安装包已经存在,到site-package查看没有,pyCharm也提示没有,无奈使用pip安装

          但是出现上述错误,一般出现403是禁止访问,但是奇怪的是每次都是下载到一半左右才报错,真的很捉急。从网上说,加大timeout时间,但是这个想法            很愚蠢啊,因为出现403你加timeout有什么用?估计也是觉得访问一半才报的错啊。


解决办法:1.使用作为参数。尝试没用

--trusted-host pypi.python.org

                 2.使用国内镜像源,亲测可用


原因:该网站不可访问,因为是国外服务器。


镜像源:

          推荐使用ustc(中科大的):https://pypi.mirrors.ustc.edu.cn/simple

             豆瓣:http://pypi.douban.com/simple

             阿里:http://mirrors.aliyun.com/pypi/simple

          cmd: 

pip  install --index https://pypi.mirrors.ustc.edu.cn/simple matplotlib

        



相关文章
|
7月前
|
Shell 网络安全 Ruby
Pods hostname “upyun.gems.ruby-china.org” does not match the server certificate
Pods hostname “upyun.gems.ruby-china.org” does not match the server certificate
41 0
|
8月前
|
Python
pip安装模块报错ReadTimeoutError: HTTPSConnectionPool(host=‘files.pythonhosted.org‘, port=443): Read timed
pip安装模块报错ReadTimeoutError: HTTPSConnectionPool(host=‘files.pythonhosted.org‘, port=443): Read timed
157 0
成功解决 安装pywin32时出现python version 3.6-32 required, which was not found in the registry
成功解决 安装pywin32时出现python version 3.6-32 required, which was not found in the registry
成功解决 安装pywin32时出现python version 3.6-32 required, which was not found in the registry
成功解决​​​​​​​安装pywin32时出现python version 3.6 required, which was not found in the registry
成功解决​​​​​​​安装pywin32时出现python version 3.6 required, which was not found in the registry
成功解决​​​​​​​安装pywin32时出现python version 3.6 required, which was not found in the registry
安装baostock插件报错ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read t
安装baostock插件报错ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read t
331 0
|
Python
python报错——check_hostname requires server_hostname
python报错——check_hostname requires server_hostname
249 0
python报错——check_hostname requires server_hostname
Python遇到的坑--ValueError: check_hostname requires server_hostname
原因:这个其实跟选用的python版本的关系不大,主要原因是因为每次使用 pip install 命令下载插件的时候,下载的都是最新的版本,比如下载requests插件,它会自动的将依赖的urllib3这个插件也安装,然后依赖的插件版本太高,就导致了这个报错的问题。
Python遇到的坑--ValueError: check_hostname requires server_hostname
成功解决​​​​​​​安装pywin32时出现python version 3.6 required, which was not found in the registry(二)
成功解决​​​​​​​安装pywin32时出现python version 3.6 required, which was not found in the registry
成功解决​​​​​​​安装pywin32时出现python version 3.6 required, which was not found in the registry(二)
成功解决​​​​​​​安装pywin32时出现python version 3.6 required, which was not found in the registry(一)
成功解决​​​​​​​安装pywin32时出现python version 3.6 required, which was not found in the registry
成功解决​​​​​​​安装pywin32时出现python version 3.6 required, which was not found in the registry(一)