Giter Site home page Giter Site logo

Comments (13)

nicodv avatar nicodv commented on July 25, 2024

Looks like scipy is not installing. Could you try installing that first, to see if it's due to that package and not kmodes?

from kmodes.

francescodelorenzi avatar francescodelorenzi commented on July 25, 2024

Hi,
I am having the same problem. It is indeed due to a problem with installation of scipy throughpip (I had to install scipy with conda).
But even installing scipy with conda it still fails. It anyway tries to build the wheel for scipy and it fails.
Any suggestion to skip the scipy build (which should exists somewhere) ?

from kmodes.

nicodv avatar nicodv commented on July 25, 2024

scipy is a necessary requirement for kmodes (and for scikit-learn, for that matter, which is another requirement of kmodes), so there's no way around that.

If you manage to have Conda install a new enough version of scipy, though, kmodes will likely skip scipy installation because it will see the requirement is already fulfilled.

The required version of scipy for kmodes is written in setup.py. I've just downgraded that version to match scikit-learn, so it might be easier to install kmodes from source now.

from kmodes.

francescodelorenzi avatar francescodelorenzi commented on July 25, 2024

the problem for me is that even if I have scipy installed through conda it doesn't skip it when installing kmodes

from kmodes.

nicodv avatar nicodv commented on July 25, 2024

What scipy version do you have installed in conda?

from kmodes.

francescodelorenzi avatar francescodelorenzi commented on July 25, 2024

scipy 0.19.1-np113py35_0

from kmodes.

nicodv avatar nicodv commented on July 25, 2024

That's new enough... I don't understand why scipy would get reinstalled.

from kmodes.

francescodelorenzi avatar francescodelorenzi commented on July 25, 2024

downgrading scipy to 0.19.0, it doesn't try to install it. And I can get a clean installation.
It looks explicitely for 0.19.0 and 0.19.1 doesn't work
Unfortunately running the example it gives an error
RuntimeError: module compiled against API version 0xb but this version of numpy is 0xa
[cut]
ImportError: numpy.core.multiarray failed to import
I guess that it also downgraded numpy

from kmodes.

francescodelorenzi avatar francescodelorenzi commented on July 25, 2024

I had to update numpy as well. These are the versions for which I can run the example in your main page:
1.13.1 numpy
0.19.0 scipy
0.18.1 sklearn

from kmodes.

musharif avatar musharif commented on July 25, 2024

Dear nicodv, I am facing exactly the same problem while installing it on windows 10. I am installin using pip install kmodes.
Installation fails when building wheels for scikit-learn and scipy. The error output is huge and below is the last line as mentioned by KobaKhit commented on Jul 14

regards,

from kmodes.

musharif avatar musharif commented on July 25, 2024

in continuation to my above comment, below is first few lines display, when installation fails.

Failed building wheel for scipy
Running setup.py clean for scipy
Complete output from command C:\Users\Musharif.ahmed\Anaconda3\python.exe -u -c "import setuptools, tokenize;file='C:\Users\MUSHAR~1.AHM\AppData\Local\Temp\pip-build-wutfd5yp\scipy\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" clean --all:

setup.py clean is not supported, use one of the following instead:

- `git clean -xdf` (cleans all files)
- `git clean -Xdf` (cleans all versioned files, doesn't touch
                    files that aren't checked into the git repo)

Add --force to your command to use it anyway if you must (unsupported).

from kmodes.

nicodv avatar nicodv commented on July 25, 2024

This is not specific to kmodes. Please refer to this link for discussion and solutions: https://stackoverflow.com/questions/28190534/windows-scipy-install-no-lapack-blas-resources-found/32064281

from kmodes.

musharif avatar musharif commented on July 25, 2024

from kmodes.

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.