One - One Code All

Blog Content

mac中python安装pandas时报错cannot install 'numpy',Cannot uninstall 'numpy'.

Python   2018-01-20 23:18:36

mac安装pandas时报错cannot install ''numpy',Cannot uninstall 'numpy'.

mac用系统自带的python2.7安装pandas时报错cannot install ''numpy'.It is a distutils installed project and thus we cannot ...


解决

方法1:直接找到numpy的安装目录,直接通过sudo rm 去对文件夹进行删除。(一般都在dist-packages目录下)

方法2:(强行安装更新更高的版本)
sudo pip2 install numpy --ignore-installed numpy



上一篇:pandas的dataframe 获取某一值所在的行索引
下一篇:RSRS阻力支撑相对强度策略

The minute you think of giving up, think of the reason why you held on so long.