安装pandas遇到:Command “python setup.py egg_info” failed with error code 1 in C:\Users\HAPPy\AppData\Loc

安装pandas遇到:Command “python setup.py egg_info” failed with error code 1 in C:\Users\HAPPy\AppData\Local\Temp\pip-build-v1_m71o7\pandas
安装pandas遇到:Command “python setup.py egg_info” failed with error code 1 in C:\Users\HAPPy\AppData\Loc
解决办法:更新 setuptools 和 pip:
pip install --upgrade setuptools -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com
python -m pip install --upgrade pip -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com
然后在执行
pip install pandas -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com

效果:
安装pandas遇到:Command “python setup.py egg_info” failed with error code 1 in C:\Users\HAPPy\AppData\Loc

可以看到pandas完全可以应用啦!!
安装pandas遇到:Command “python setup.py egg_info” failed with error code 1 in C:\Users\HAPPy\AppData\Loc