Cannot install scikit-surprise on my jupyter notebook

Question:

enter image description here

I am building a recommendation engine and am not able to install surprise, i thought the problem was because i didn’t have a c compiler(since i found some people saying it would solve the problem) so i installed it too but couldn’t solve anything. i even tried runing the pip install on my command prompt and it gave an error.

Asked By: Raj Singh

||

Answers:

Some users have suggested that i use ‘!’ before pip but pip install works fine for me all the time as u see in the picture for numpy.

the solution i found for this was

Step 1 : Go to anaconda command prompt

Step 2 : Type conda install -c conda-forge scikit-surprise

i hope this is helpful to anyone who encounters this error in the future.

Answered By: Raj Singh

I found the solution, change your enviroment interpreter to python <= 3.7 version

scikit-surprise it´s not support for greater version of python.

For more information see also https://pypi.org/project/scikit-surprise/

Answered By: fedemoreno613

I was able to install it on python 3.7 after installing python3.7-dev

I found the solution in this link https://github.com/NicolasHug/Surprise/issues/283#issuecomment-515878185

Answered By: Randy

I found the solution for me as to first update all my conda packages and then install scikit-surprise. You can follow the steps as well if it works out for you:

  1. Go to anaconda command prompt
  2. Type conda update –all
  3. Type conda install -c conda-forge scikit-surprise

Also I’m running python 3.8.8.

Answered By: Deepankar Pradhan

Try this in shell: pip install scikit-surprise==1.0.4

Answered By: Joerude

The key error is in Microsoft Visual C++ 14.0 or greater is required. You have to download supporting build tools for C++(sometimes just downloading it from MS website wont work), if you are using visual studio 2022 for python development, you have to modify your installer and download missing build tools, I think its titled "Desktop Development with C++ (not just python developer/IDE) and check almost all tools", however it consumes bit of system space, however it sorted this problem of installing many packages in python which was not working otherwise.

Answered By: Ravi