Skip to content
Sign upLog in
← Back to Community
updating sklearn to <0.15
Profile icon

Hey there, right now I'm trying to classify data (including nonnumeric data) with the sklearn package. When I try to execute my program, I get this message:

Traceback (most recent call last): File "python", line 34, in <module> ValueError: could not convert string to float: 'male'

After some research I found out, that sklearn just need to upgrade to a newer version (0.15 or above). Inserting this version into the requirements, I get this message:

Could not find a version that satisfies the requirement sklearn>=0.15.0 (from -r requirements.txt (line 3)) (from versions: 0.0) No matching distribution found for sklearn>=0.15.0 (from -r requirements.txt (line 3)) You are using pip version 9.0.1, however version 18.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command.

However, can someone tell me how I can solve this issue? I am pretty new to repl and do not know how to execute shell commands and update it with pip...

Thank you very much

Profile icon
Profile icon

When I add the scikit-learn package via the package manager, it installs at version 0.20.0 - are you seeing something different?