Installing sklearn on AWS deeplearning AMI

Garglesoap Source

I'm trying to install sklearn onm an AWS DeepLearning AMI, with Conda and an assortment of backends pre-installed. I'm following ScikitLearn's website instructions:

$ conda install -c anaconda scikit-learn 
$ source activate python3
$ jupyter notebook

In Jupyter notebook:

import numpy as np
import pandas as pd
import matplotlib.pyplot as plt

#Scaling the data
from sklearn.preprocessing import MinMaxScaler

ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-884b8a303194> in <module>()
     13 #Scaling the data
---> 14 from sklearn.preprocessing import MinMaxScaler
     15 sc = MinMaxScaler()                           #scaling using normalisation
     16 training_set1 = sc.fit_transform(training_set1)

ModuleNotFoundError: No module named 'sklearn'


comments powered by Disqus