Coder Social home page Coder Social logo

no module name sklearn about whereami HOT 16 OPEN

kootenpv avatar kootenpv commented on May 5, 2024
no module name sklearn

from whereami.

Comments (16)

kootenpv avatar kootenpv commented on May 5, 2024

It would be best to install through pip install whereami, did you try that? What OS, which python version?

from whereami.

fcladera avatar fcladera commented on May 5, 2024

On Saturday, October 1, 2016 3:33:12 PM ART, Dan Aldred wrote:

Hi

I keep getting this error, is there a list of dependencies that
need to be installed first?

Thanks

Please note that some functions required in whereami are available only
in scikit-learn >= 0.18.

I am currently packaging whereami for Arch Linux AUR, and I cannot
ship the latest version because Arch includes python-scikit-learn
0.17.1.

from whereami.

kootenpv avatar kootenpv commented on May 5, 2024

@fcladera If you tell me what is specifically not supported (how the error shows) then I will fix it immediately.

As an aside, I find it strange that Arch doesn't work, isn't it doing rolling upgrades? On my Arch Linux server it is working just fine btw, so I'm very curious for more details :)

from whereami.

kootenpv avatar kootenpv commented on May 5, 2024

I did a tox test with scikit-learn==0.17.0 and indeed, I see what you mean.

from whereami.

kootenpv avatar kootenpv commented on May 5, 2024

Should be fixed as of whereami==0.3.40.

It will try to use the "new" (model_selection) way of sklearn first, if not, then use the "old" (cross_validation) way.

try:
    from sklearn.model_selection import cross_val_score
except ImportError:
    from sklearn.cross_validation import cross_val_score

from whereami.

TeCoEd avatar TeCoEd commented on May 5, 2024

Hi, I am running it on the Raspberry Pi, using Jessie, I will try the upgrade now.. thanks for the quick response 👍

from whereami.

kootenpv avatar kootenpv commented on May 5, 2024

@TeCoEd You're welcome :) If you recently tried an upgrade, you might want to try to upgrade like pip install -U --no-cache whereami

from whereami.

fcladera avatar fcladera commented on May 5, 2024

On Saturday, October 1, 2016 4:05:45 PM ART, Pascal van Kooten wrote:

Should be fixed as of whereami==0.3.40.

It will try to use the "new" (model_selection) way of
sklearn first, if not, then use the "old" (cross_validation)
way.

try:
    from sklearn.model_selection import cross_val_score
except ImportError:
    from sklearn.cross_validation import cross_val_score

Hi, sorry for the late answer. I confirm that it works with 0.17.

I'll ship the new version.

from whereami.

kootenpv avatar kootenpv commented on May 5, 2024

Fantastic to be included in AUR :) Note that it was having difficulties installing and it mentioned 2 scikit versions:

Packages (2) python-scipy-0.18.1-1  python-scikit-learn-0.17.1-2

Also, I was only able to find it through yaourt, is that how it is supposed to be?

Btw, I think I'm not able to install it as I've already installed scikit through pip?

from whereami.

TeCoEd avatar TeCoEd commented on May 5, 2024

still getting an error: "no module named sklearn",

from whereami.

fcladera avatar fcladera commented on May 5, 2024

@kootenpv That's correct, because you must install both scipy and scikit-learn to make it work.

It is stated in the scipy-learn website

Built on NumPy, SciPy, and matplotlib

Hence, pacman installs scipy as a dependency.

The PKGBUILD has the following dependencies:

depends=( 'python-access_points' 'python-tqdm' 'python-scikit-learn')

(BTW, that means access_points is also in the AUR)

and all the magic is done by yaourt and pacman.

You may have problems to install the packages if pip uses the same location to store the packages. pacman will not overwrite an existing file.

You will only find this package with yaourt because it is in AUR, not in the community repository.

https://wiki.archlinux.org/index.php/Arch_User_Repository#What_is_the_AUR.3F

from whereami.

fcladera avatar fcladera commented on May 5, 2024

@TeCoEd try

pip install -U scikit-learn

from whereami.

kootenpv avatar kootenpv commented on May 5, 2024

@fcladera The thing is, I already have installed scikit-learn using pip; it is now clashing unfortunately. Or that might result from testing whereami on python 2 as well, I'm not sure. I guess I'll try to remove scikit-learn python 2 and see if I get no clashes.

from whereami.

fcladera avatar fcladera commented on May 5, 2024

@kootenpv if you get

/path/to/file exists in filesystem

that means pip uses the same directory as pacman. Usually, you cannot install python packages using both pacman and pip globally!

This package is for python 3, it will not conflict with python 2 versions.

from whereami.

TeCoEd avatar TeCoEd commented on May 5, 2024

so now I am trying pip3 for the installation of the dependencies.

from whereami.

TeCoEd avatar TeCoEd commented on May 5, 2024

still errors here

from whereami.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.