Import sklearn

Hi I am having an issue with sklearn imports. They are working in single notebook file but in a directory folder I am getting the following error: ModuleNotFoundError Traceback (most recent call last) <ipython-input-707-a54e2b32d7e4> in <module>() ----> 1 from sklearn.datasets import make_moons 2 from sklearn.linear_model import LogisticRegression 3 from sklearn import preprocessing

ModuleNotFoundError: No module named 'sklearn'

Which version of python are you running? (look in your error traceback)

And compare that to the version of python where your notebook works.

3.7. I changed it to 3.6 and that works. Thanks