简体   繁体   中英

Problems installing scikit-learn

I was installing scikit-learn python module using pip, due to some reasons the installations was not completed, I tried to reinstall the package, but then it shows this error:

pip can't proceed with requirement 'scikit-learn' due to a pre-existing build directory. location: /tmp/pip_build_root/scikit-learn This is likely due to a previous installation that failed. pip is being responsible and not assuming it can delete this. Please delete it and try again. Storing debug log for failure in /home/yash/.pip/pip.log

There's no module created for scikit-learn in my python dist-packages folder, so that I can delete and re-install.

The log says:

pip can't proceed with requirement 'scikit-learn' due to a pre-existing build directory.
 location: /tmp/pip_build_root/scikit-learn

I'm sure what you need is to delete that directory and try installing again

Actually, you posted that phrase in your question, and I didn't realy need to ask for the log :)

By the way, why did your first installation fail?

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