安装xgboost时numpy报错
2022-03-22 本文已影响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