简体   繁体   中英

Install/import sklearn module on Spyder 2.1? (Ubuntu)

I am trying to import the sklearn module into Spyder 2.1 (for Python 2.7) . I have installed it on Anaconda through the terminal, but when I try to import it from the console in Spyder I get this error:

ImportError: No module named sklearn.linear_model

I installed sklearn using the command from this link , and it seemed to install fine from the terminal.

I am running Spyder and Anaconda on Ubuntu Crouton (in case that is relevant).

I think this may help. [link] Adding a module (Specifically pymorph) to Spyder (Python IDE) If you can locate, it's just a matter of changing the file paths.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM