AmazaspShumik / sklearn-bayes

Python package for Bayesian Machine Learning with scikit-learn API
MIT License
513 stars 118 forks source link

installation in windows 10 fails #42

Open Sandy4321 opened 4 years ago

Sandy4321 commented 4 years ago

great code thanks but installation in windows 10 fails Microsoft Windows [Version 10.0.17134.1130]

(c) 2018 Microsoft Corporation. All rights reserved.

D:\code\abcd\pip install https://github.com/AmazaspShumik/sklearn_bayes/archive/master.zip

Collecting https://github.com/AmazaspShumik/sklearn_bayes/archive/master.zip

Downloading https://github.com/AmazaspShumik/sklearn_bayes/archive/master.zip

    - 5.8MB 2.2MB/s

Requirement already satisfied: numpy>=1.9.2 in c:\users\ABCDFG\appdata\local\continuum\anaconda3\lib\site-packages (from skbayes==0.1.0a1) (1.17.3)

Requirement already satisfied: scipy>=0.15.1 in c:\users\ABCDFG\appdata\local\continuum\anaconda3\lib\site-packages (from skbayes==0.1.0a1) (1.1.0)

Requirement already satisfied: scikit-learn>=0.17 in c:\users\ABCDFG\appdata\local\continuum\anaconda3\lib\site-packages (from skbayes==0.1.0a1) (0.21.3)

Requirement already satisfied: cython>=0.24 in c:\users\ABCDFG\appdata\local\continuum\anaconda3\lib\site-packages (from skbayes==0.1.0a1) (0.28.2)

Requirement already satisfied: joblib>=0.11 in c:\users\ABCDFG\appdata\local\continuum\anaconda3\lib\site-packages (from scikit-learn>=0.17->skbayes==0.1.0a1) (0.13.2)

Building wheels for collected packages: skbayes

Building wheel for skbayes (setup.py) ... error

ERROR: Complete output from command 'C:\Users\ABCDFG\AppData\Local\Continuum\anaconda3\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\ABCDFG\\AppData\\Local\\Temp\\pip-req-build-l568up61\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\ABCDFG\AppData\Local\Temp\pip-wheel-bl0aft0m' --python-tag cp36:

ERROR: running bdist_wheel

running build

running build_py

creating build

creating build\lib.win-amd64-3.6

creating build\lib.win-amd64-3.6\skbayes

copying skbayes\__init__.py -> build\lib.win-amd64-3.6\skbayes

creating build\lib.win-amd64-3.6\skbayes\decomposition_models

copying skbayes\decomposition_models\rbm.py -> build\lib.win-amd64-3.6\skbayes\decomposition_models

copying skbayes\decomposition_models\__init__.py -> build\lib.win-amd64-3.6\skbayes\decomposition_models

creating build\lib.win-amd64-3.6\skbayes\hidden_markov_models

copying skbayes\hidden_markov_models\__init__.py -> build\lib.win-amd64-3.6\skbayes\hidden_markov_models

creating build\lib.win-amd64-3.6\skbayes\linear_models

copying skbayes\linear_models\bayes_linear.py -> build\lib.win-amd64-3.6\skbayes\linear_models

copying skbayes\linear_models\bayes_logistic.py -> build\lib.win-amd64-3.6\skbayes\linear_models

copying skbayes\linear_models\__init__.py -> build\lib.win-amd64-3.6\skbayes\linear_models

creating build\lib.win-amd64-3.6\skbayes\mixture_models

copying skbayes\mixture_models\dpmixture.py -> build\lib.win-amd64-3.6\skbayes\mixture_models

copying skbayes\mixture_models\mixture.py -> build\lib.win-amd64-3.6\skbayes\mixture_models

copying skbayes\mixture_models\__init__.py -> build\lib.win-amd64-3.6\skbayes\mixture_models

creating build\lib.win-amd64-3.6\skbayes\rvm_ard_models

copying skbayes\rvm_ard_models\fast_rvm.py -> build\lib.win-amd64-3.6\skbayes\rvm_ard_models

copying skbayes\rvm_ard_models\vrvm.py -> build\lib.win-amd64-3.6\skbayes\rvm_ard_models

copying skbayes\rvm_ard_models\__init__.py -> build\lib.win-amd64-3.6\skbayes\rvm_ard_models

running build_ext

No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils

building 'skbayes.decomposition_models.gibbs_lda_cython' extension

creating build\temp.win-amd64-3.6

creating build\temp.win-amd64-3.6\Release

creating build\temp.win-amd64-3.6\Release\skbayes

creating build\temp.win-amd64-3.6\Release\skbayes\decomposition_models

cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\\Users\\ABCDFG\\AppData\\Local\\Continuum\\anaconda3\\lib\\site-packages\\numpy\\core\\include -IC:\Users\ABCDFG\AppData\Local\Continuum\anaconda3\include -IC:\Users\ABCDFG\AppData\Local\Continuum\anaconda3\include /Tcskbayes/decomposition_models/gibbs_lda_cython.c /Fobuild\temp.win-amd64-3.6\Release\skbayes/decomposition_models/gibbs_lda_cython.obj -O3

error: Command "cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\\Users\\ABCDFG\\AppData\\Local\\Continuum\\anaconda3\\lib\\site-packages\\numpy\\core\\include -IC:\Users\ABCDFG\AppData\Local\Continuum\anaconda3\include -IC:\Users\ABCDFG\AppData\Local\Continuum\anaconda3\include /Tcskbayes/decomposition_models/gibbs_lda_cython.c /Fobuild\temp.win-amd64-3.6\Release\skbayes/decomposition_models/gibbs_lda_cython.obj -O3" failed with exit status 127

----------------------------------------

ERROR: Failed building wheel for skbayes

Running setup.py clean for skbayes

Failed to build skbayes

Installing collected packages: skbayes

Running setup.py install for skbayes ... error

    ERROR: Complete output from command 'C:\Users\ABCDFG\AppData\Local\Continuum\anaconda3\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\ABCDFG\\AppData\\Local\\Temp\\pip-req-build-l568up61\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\ABCDFG\AppData\Local\Temp\pip-record-v7us44gt\install-record.txt' --single-version-externally-managed --compile:

    ERROR: running install

    running build

    running build_py

    creating build

    creating build\lib.win-amd64-3.6

    creating build\lib.win-amd64-3.6\skbayes

    copying skbayes\__init__.py -> build\lib.win-amd64-3.6\skbayes

    creating build\lib.win-amd64-3.6\skbayes\decomposition_models

    copying skbayes\decomposition_models\rbm.py -> build\lib.win-amd64-3.6\skbayes\decomposition_models

    copying skbayes\decomposition_models\__init__.py -> build\lib.win-amd64-3.6\skbayes\decomposition_models

    creating build\lib.win-amd64-3.6\skbayes\hidden_markov_models

    copying skbayes\hidden_markov_models\__init__.py -> build\lib.win-amd64-3.6\skbayes\hidden_markov_models

    creating build\lib.win-amd64-3.6\skbayes\linear_models

    copying skbayes\linear_models\bayes_linear.py -> build\lib.win-amd64-3.6\skbayes\linear_models

    copying skbayes\linear_models\bayes_logistic.py -> build\lib.win-amd64-3.6\skbayes\linear_models

    copying skbayes\linear_models\__init__.py -> build\lib.win-amd64-3.6\skbayes\linear_models

    creating build\lib.win-amd64-3.6\skbayes\mixture_models

    copying skbayes\mixture_models\dpmixture.py -> build\lib.win-amd64-3.6\skbayes\mixture_models

    copying skbayes\mixture_models\mixture.py -> build\lib.win-amd64-3.6\skbayes\mixture_models

    copying skbayes\mixture_models\__init__.py -> build\lib.win-amd64-3.6\skbayes\mixture_models

    creating build\lib.win-amd64-3.6\skbayes\rvm_ard_models

    copying skbayes\rvm_ard_models\fast_rvm.py -> build\lib.win-amd64-3.6\skbayes\rvm_ard_models

    copying skbayes\rvm_ard_models\vrvm.py -> build\lib.win-amd64-3.6\skbayes\rvm_ard_models

    copying skbayes\rvm_ard_models\__init__.py -> build\lib.win-amd64-3.6\skbayes\rvm_ard_models

    running build_ext

    No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils

    building 'skbayes.decomposition_models.gibbs_lda_cython' extension

    creating build\temp.win-amd64-3.6

    creating build\temp.win-amd64-3.6\Release

    creating build\temp.win-amd64-3.6\Release\skbayes

    creating build\temp.win-amd64-3.6\Release\skbayes\decomposition_models

    cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\\Users\\ABCDFG\\AppData\\Local\\Continuum\\anaconda3\\lib\\site-packages\\numpy\\core\\include -IC:\Users\ABCDFG\AppData\Local\Continuum\anaconda3\include -IC:\Users\ABCDFG\AppData\Local\Continuum\anaconda3\include /Tcskbayes/decomposition_models/gibbs_lda_cython.c /Fobuild\temp.win-amd64-3.6\Release\skbayes/decomposition_models/gibbs_lda_cython.obj -O3

    error: Command "cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\\Users\\ABCDFG\\AppData\\Local\\Continuum\\anaconda3\\lib\\site-packages\\numpy\\core\\include -IC:\Users\ABCDFG\AppData\Local\Continuum\anaconda3\include -IC:\Users\ABCDFG\AppData\Local\Continuum\anaconda3\include /Tcskbayes/decomposition_models/gibbs_lda_cython.c /Fobuild\temp.win-amd64-3.6\Release\skbayes/decomposition_models/gibbs_lda_cython.obj -O3" failed with exit status 127

    ----------------------------------------

ERROR: Command "'C:\Users\ABCDFG\AppData\Local\Continuum\anaconda3\python.exe' -u -c 'import setuptools, tokenize;file='"'"'C:\Users\ABCDFG\AppData\Local\Temp\pip-req-build-l568up61\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\ABCDFG\AppData\Local\Temp\pip-record-v7us44gt\install-record.txt' --single-version-externally-managed --compile" failed with error code 1 in C:\Users\ABCDFG\AppData\Local\Temp\pip-req-build-l568up61\

D:\code\abcd

EnigMATHic commented 4 years ago

This error occurs for me too.