0
votes

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.

1
Could you put that debug log here somehow, maybe using cloud storage? - Andrew Che
Sorry, but I don't know how check the logs. could you tell me how to do that ? @АндрейЧереваткин - Yash Jain
Thi is the log file pip.log file: link - Yash Jain

1 Answers

1
votes

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?