MAC pycharm安装pandas报错:Command errored out with exit status 1

在MAC环境下,使用PyCharm尝试通过豆瓣源安装pandas时遇到错误,显示'Command errored out with exit status 1'。为解决此问题,尝试切换到清华源进行安装,成功解决了报错,安装过程的日志记录详细。

使用豆瓣源安装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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值