安装完sklearn后在跑程序时报错UserWarning: The NumPy module was reloaded (imported a second time). This can in some cases result in small but subtle issues and is discouraged.
  

解决方法:pip uninstall sklearn先将sklearn的库卸载掉,查看此时的numpy库版本

然后卸载掉此时仍然存在的numpy库

最后重新使用conda install scikit-learn语句进行安装即可

Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐