美文网首页
安装xgboost时numpy报错

安装xgboost时numpy报错

作者: 可能性之兽 | 来源:发表于2022-03-22 23:44 被阅读0次

在一个新的conda环境安装xgboost的时候遇上这样的报错

ImportError: Something is wrong with the numpy installation. While importing we detected an older version of numpy in [~/miniconda3/envs/test/lib/python3.7/site-packages/numpy']. One method of fixing this is to repeatedly uninstall numpy until none is found, then reinstall this version.

pip uninstall numpy

这样之后还有问题
需要到~/miniconda3/envs/test/lib/python3.7/site-packages/ 这个文件夹下面

ls *numpy*
rm -rf numpy*

然后再重新安装numpy

pip install numpy

相关文章

网友评论

      本文标题:安装xgboost时numpy报错

      本文链接:https://www.haomeiwen.com/subject/pggqjrtx.html