python中安装pandas失败报错pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=‘files.

1.安装pandas安装

pip3 install pandas

报错如下:

 raise ReadTimeoutError(self._pool, None, "Read timed out.") pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.

 

 2.解决办法:超时,需要更换镜像即可

pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple pandas

 安装成功后,导入后不报错

import pandas as pd

猜你喜欢

转载自blog.csdn.net/weixin_40650522/article/details/129677335