编程语言
首页 > 编程语言> > 【转】Python PIP 升级到 20.2.3后 无法使用PyPI华为镜像

【转】Python PIP 升级到 20.2.3后 无法使用PyPI华为镜像

作者:互联网

请参考:https://bbs.huaweicloud.com/suggestion/detail/105449

问题描述

PIP升级到20.2.3后,当安装软件时会报这个错误

WARNING: Skipping page https://mirrors.huaweicloud.com/repository/pypi/simple/pandas/ because the GET request got Content-Type: application/octet-stream.The only supported Content-Type is text/html

ERROR: Could not find a version that satisfies the requirement pandas (from versions: none)

ERROR: No matching distribution found for pandas

 

解决办法

将pip.conf文件修改为http协议就好了
cat pip.conf
[global]
index-url = http://mirrors.huaweicloud.com/repository/pypi/simple
trusted-host = mirrors.huaweicloud.com
timeout = 120

标签:20.2,mirrors,Python,PyPI,Content,huaweicloud,conf,com,pandas
来源: https://www.cnblogs.com/frankzs/p/14299026.html