python - How do I import sparkit-learn? -


it says of requirements sparkit-learn satisfied, know have module, there 2 strange things environment i'm working in.

one strange thing when type python terminal, doesn't load python shell though python installed.

the other strange thing question, have ipython notebook working , can access remotely, type import splearn , there's error (see below).

--------------------------------------------------------------------------- importerror                               traceback (most recent call last) <ipython-input-9-656295d86158> in <module>() ----> 1 import splearn  importerror: no module named splearn 

if don't think installed correctly please let me know need do. thank you!

edit: able import through pyspark shell, don't want work within spark shell.

you have have copy of sparkit-learn source file github repo import in ipython notebook. see below.

import findspark findspark.init()  import pyspark  pyspark import  sparkcontext  cd sparkit-learn-master/  import splearn 

problem solved.


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -