NicolasHug / Surprise

A Python scikit for building and analyzing recommender systems
http://surpriselib.com
BSD 3-Clause "New" or "Revised" License
6.42k stars 1.01k forks source link

Cannot import Dataset from Surprise (unknown location) #435

Closed ayanatherate closed 2 years ago

ayanatherate commented 2 years ago

Description

Hey, I cloned this repo into my local system after repeated attempts using pip (also on anaconda prompt) failed. 'import surprise' works but when I'm trying to import 'Dataset', it throws the same error as in the title.

Any help would be appreciated. Thanks!

Steps/Code to Reproduce

import surprise
from surprise import Dataset, SVD

Expected Results

Hassle-free progress to the next part of my project.

Actual Results

ImportError: cannot import name 'Dataset' from 'surprise' (unknown location)

Versions

NicolasHug commented 2 years ago

Hi @ayanatherate , did you try the instructions to build from source? https://github.com/NicolasHug/Surprise/blob/master/CONTRIBUTING.md#set-up https://github.com/NicolasHug/Surprise#installation