我正在尝试使用import sklearn
和
from sklearn.metrics import mean_squared_error
from sklearn.model_selection import train_test_split
但是我要么得到错误ModuleNotFoundError: No module named 'sklearn'
要么It seems that scikit-learn has not been built correctly.
我已经尝试过以正常方式安装 scikit-learn 以及使用过去的版本 sudo pip install -U scikit-image==0.17.2
,因为这可以解决很多情况。