Error about WeightedAllPairs()
Opened this issue · 4 comments
This package unfortunately only runs under Python 3. You can check in the readme file that there's a warning about it too.
I don’t have a .whl
file and wouldn’t know how to produce one. The thing about the installation problems you get is that, after some version of this package, I explicitly added in the setup.py
file that the package requires Python 3, so if you try to install it under Python 2, it will select an older version that did not have that Python 3 requirement in the setup.py
file, but which still doesn’t run under 2.
And the issue with the installation is most likely about compiled C code that later versions of this package use to run faster. In order to install it, you can either:
- Install an older version (
pip install costsensitive=0.1.1
), which does not have any C code, but is slower and has some bugs. - Setup your Python environment to use some C compiler – in Anaconda in Windows you can install MINGW (
conda install libpython m2w64-toolchain
- or something like that, you can google it), or you can install Visual Studio or MS Build Tools with support formsvc140
(you have to select it explicitly as it’s not a default) that Anaconda uses to build Python. In Linux you’d just need to install GCC from a package manager.
I am very grateful for your reply. I gave up the installation step, but I solved the error by directly applying init.py. Thank you again for your help.:-D