python - 使用 pip install 安装 matplotlib 时出错
问题描述
我在办公系统上使用 pip instll 安装了 python、jupyter notebook、numpy 和 pandas,没有任何问题,但无法安装 Matplotlib。我收到以下错误:
点安装 matplotlib
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1123)'))': /simple/matplotlib/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1123)'))': /simple/matplotlib/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1123)'))': /simple/matplotlib/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1123)'))': /simple/matplotlib/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1123)'))': /simple/matplotlib/
Could not fetch URL https://pypi.org/simple/matplotlib/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/matplotlib/ (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1123)'))) - skipping
ERROR: Could not find a version that satisfies the requirement matplotlib
ERROR: No matching distribution found for matplotlib
我也试过:
python -m pip install -U pip
python -m pip install -U matplotlib
和:
!{sys.executable} -m pip install matplotlib
引发错误:
!{sys.executable} -m pip install matplotlib '!{sys.executable}' is not recognized as an internal or external command, operable program or batch file
我不知道问题是什么或如何解决它,请帮助我。. .
解决方案
推荐阅读
- sql - 存储过程中的动态 WHERE 子句
- matlab - Matlab使用fzero找到相交点
- java - 无法解决此错误:无法在 ("NAWFEL". "ORDO_DEP_UUSATEUR". "EMPLOI") 中插入 NULL
- image - 图像文件加密,应该在不破坏文件的情况下加密哪一部分
- python - compare two text files then update the specific values based on the matching first column. (python)
- vba - 在特定单词之前删除一行(仅当它为空时)
- scala - Scala Spark:Spark 中是否有 datafu.pig.sampling.SampleByKey 替代方案?
- sql-server - 为什么聚合 GROUPBY() COUNT(*) of 0 没有出现在查询中?
- javascript - 如果我在类中使用静态方法,为什么不能使用任何类的构造函数?
- nginx - 使用 apache2 将 nginx 重定向到另一台服务器