简体   繁体   中英

How to add module in spyder IDE of python

I started learning machine learning. I was stuck in the IDE where I was unable to add the module of sklearn in my Python file. It was showing ModuleNotFoundError: No module named 'sklearn.cross_validation'

Refer to this link on guide on how to install libraries in Spyder. If you are on ubuntu, then the best thing for you would be to install packages using pip as that will install and settle dependencies. You can also use conda for that. Make sure that python environment that spyder is using is same as the python environment you are installing the package for.

Great that you started learning machine learning, enjoy the journey!

I would advise you to install python using Anaconda https://www.anaconda.com/distribution/

If you do this most of the modules you will need will be pre-installed.

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