使用豆瓣源安装pandas:
$ pip3 install pandas -i https://pypi.douban.com/simple/
报错如下:
ERROR: Command errored out with exit status 1:
command: /Users/.pyenv/versions/3.5.2/envs/env352/bin/python /Users/.pyenv/versions/3.5.2/envs/env352/lib/python3.5/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /var/folders/8_/sxgzb5qx2193jd0_cnnr2rm40000gn/T/tmpgydzwree
cwd: /private/var/folders/8_/sxgzb5qx2193jd0_cnnr2rm40000gn/T/pip-install-nhbi2km1/pandas
解决方法:
使用清华源安装后正常了
$ pip3 install pandas -i https://pypi.tuna.tsinghua.edu.cn/simple
日志如下:
Successfully installed numpy-1.18.1 pandas-0.24.2 python-dateutil-2.8.1 six-1.14.0
在MAC环境下,使用PyCharm尝试通过豆瓣源安装pandas时遇到错误,显示'Command errored out with exit status 1'。为解决此问题,尝试切换到清华源进行安装,成功解决了报错,安装过程的日志记录详细。

1万+

被折叠的 条评论
为什么被折叠?



