安装mxnet为什么要卸载numpy?
Cannot uninstall 'numpy'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
原因:
看到别人说是因为 mac 系统依赖 numpy,而 mxnet 需要更新版本的 numpy!
但是我就搞不明白了,为什么不能直接升级,而是要先卸载再安装呢?
解决方法:
sudo pip install --ignore-installed numpy
之后使用 pip install mxnet 命令安装。
可能还会遇到错误:
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/idna'
Consider using the `--user` option or check the permissions.
添加参数:
pip install mxnet --user
注意:
使用以下命令是不行的!
sudo -H pip install mxnet