python安装pandas模块安装失败解决方案(使用国内镜像)

因为pip和conda的安装都是默认国外站点,故可通过配置国内镜像来搞定:

配置清华PyPI镜像(如无法运行,将pip版本升级到>=10.0.0)

pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

随后重新pip install pandas
python安装pandas模块安装失败解决方案(使用国内镜像)
安装成功。
如果需要取消镜像设置,可以

pip config unset global.index-url