这里写自定义目录标题
I did:
pip install sklearn
and it said the installation was successful but the line:
from sklearn.preprocessing import StandardScaler
still says:
Import “sklearn.preprocessing” could not be resolved
Why? It’s just confusing!
Answer:
pip install -U scikit-learn
You have the installation named differently from what you use in the import statement?To people writing new modules, please name these things the same!