Questions
anonymousasked 4 months ago
I want to import sklearn and got error,
Traceback (most recent call last):
  File "<pyshell#1>", line 1, in 
    import sklearn
ModuleNotFoundError: No module named 'sklearn'
1

1 Answers

Accepted
codegenlabcodegenlabanswered 4 months ago
For windows,
pip install scikit-learn

or 

python3 -m pip install scikit-learn
For ubuntu,
sudo apt install python3-sklearn
to install conda,
conda install scikit-learn
1