scikit-learn-contrib / polylearn

A library for factorization machines and polynomial networks for classification and regression in Python.
http://contrib.scikit-learn.org/polylearn/
BSD 2-Clause "Simplified" License
245 stars 43 forks source link

is not working conda install -c conda-forge sklearn-contrib-ligh tning #13

Open Sandy4321 opened 6 years ago

Sandy4321 commented 6 years ago

I installed successfully on Windows computer by using conda but still have error polylearn_master_Jan21_2018\polylearn\tests\test_factorization_machine.py", line 14, in from polylearn.kernels import _poly_predict

ImportError: No module named polylearn.kernels

prove of correct installation is below Microsoft Windows [Version 6.3.9600] (c) 2013 Microsoft Corporation. All rights reserved.

D:\Factorisatoin_Machines\code>conda install -c conda-forge sklearn-contrib-ligh tning Fetching package metadata ............. Solving package specifications: .

Package plan for installation in environment C:\Users\SanderOct27\Anaconda2:

The following NEW packages will be INSTALLED:

ca-certificates:           2017.11.5-0       conda-forge
sklearn-contrib-lightning: 0.4.0-np112py27_1 conda-forge
vc:                        9-0               conda-forge

The following packages will be UPDATED:

conda:                     4.3.22-py27_0                 --> 4.3.32-py27_0 c

onda-forge openssl: 1.0.2j-vc9_0 --> 1.0.2n-vc9_0 c onda-forge [vc9]

The following packages will be SUPERSEDED by a higher-priority channel:

conda-env:                 2.6.0-0                       --> 2.6.0-0       c

onda-forge

Proceed ([y]/n)? y

ca-certificate 100% |###############################| Time: 0:00:00 851.73 kB/s conda-env-2.6. 100% |###############################| Time: 0:00:00 64.56 kB/s openssl-1.0.2n 100% |###############################| Time: 0:00:05 838.18 kB/s vc-9-0.tar.bz2 100% |###############################| Time: 0:00:00 51.50 kB/s sklearn-contri 100% |###############################| Time: 0:00:00 1.35 MB/s conda-4.3.32-p 100% |###############################| Time: 0:00:00 1.32 MB/s

D:\Factorisatoin_Machines\code>

vene commented 6 years ago

Your commands show that you installed the dependencies successfully, but they do not show how you installed polylearn itself. Could you clarify that part?

Sandy4321 commented 5 years ago

do you mean this cd polylearn python setup.py build sudo python setup.py install

bu this code is for Unix, what can be done for Windows?

Sandy4321 commented 5 years ago

these are messages for installation step N1

Microsoft Windows [Version 10.0.17763.615]
(c) 2018 Microsoft Corporation. All rights reserved.

E:\Factirization_Machines\code\polylearn_master_Aug7\polylearn-master>python setup.py build
Appending polylearn.tests configuration to polylearn
Ignoring attempt to set 'name' (from 'polylearn' to 'polylearn.tests')
Appending polylearn configuration to
Ignoring attempt to set 'name' (from '' to 'polylearn')
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
build_src
building extension "polylearn.loss_fast" sources
building extension "polylearn.cd_direct_fast" sources
building extension "polylearn.cd_linear_fast" sources
building extension "polylearn.cd_lifted_fast" sources
build_src: building npy-pkg config files
running build_py
creating build
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\polylearn
copying polylearn\base.py -> build\lib.win-amd64-3.6\polylearn
copying polylearn\factorization_machine.py -> build\lib.win-amd64-3.6\polylearn
copying polylearn\kernels.py -> build\lib.win-amd64-3.6\polylearn
copying polylearn\loss.py -> build\lib.win-amd64-3.6\polylearn
copying polylearn\polynomial_network.py -> build\lib.win-amd64-3.6\polylearn
copying polylearn\setup.py -> build\lib.win-amd64-3.6\polylearn
copying polylearn\__init__.py -> build\lib.win-amd64-3.6\polylearn
creating build\lib.win-amd64-3.6\polylearn\tests
copying polylearn\tests\test_cd_linear.py -> build\lib.win-amd64-3.6\polylearn\tests
copying polylearn\tests\test_common.py -> build\lib.win-amd64-3.6\polylearn\tests
copying polylearn\tests\test_factorization_machine.py -> build\lib.win-amd64-3.6\polylearn\tests
copying polylearn\tests\test_kernels.py -> build\lib.win-amd64-3.6\polylearn\tests
copying polylearn\tests\test_polynomial_network.py -> build\lib.win-amd64-3.6\polylearn\tests
copying polylearn\tests\__init__.py -> build\lib.win-amd64-3.6\polylearn\tests
running build_ext
customize Mingw32CCompiler
customize Mingw32CCompiler using build_ext
customize Mingw32CCompiler
customize Mingw32CCompiler using build_ext
building 'polylearn.loss_fast' extension
compiling C++ sources
C compiler: g++ -g -DDEBUG -DMS_WIN64 -O0 -Wall

creating build\temp.win-amd64-3.6\Release\polylearn
compile options: '-DNPY_MINGW_USE_CUSTOM_MSVCR -D__MSVCRT_VERSION__=0x1900 -IC:\Users\sndr\Anaconda3\lib\site-packages\numpy\core\include -IC:\Users\sndr\Anaconda3\lib\site-packages\numpy\core\include -IC:\Users\sndr\Anaconda3\include -IC:\Users\sndr\Anaconda3\include -c'
g++ -g -DDEBUG -DMS_WIN64 -O0 -Wall -DNPY_MINGW_USE_CUSTOM_MSVCR -D__MSVCRT_VERSION__=0x1900 -IC:\Users\sndr\Anaconda3\lib\site-packages\numpy\core\include -IC:\Users\sndr\Anaconda3\lib\site-packages\numpy\core\include -IC:\Users\sndr\Anaconda3\include -IC:\Users\sndr\Anaconda3\include -c polylearn\loss_fast.cpp -o build\temp.win-amd64-3.6\Release\polylearn\loss_fast.o
g++ -g -shared build\temp.win-amd64-3.6\Release\polylearn\loss_fast.o -LC:\Users\sndr\Anaconda3\libs -LC:\Users\sndr\Anaconda3\PCbuild\amd64 -lpython36 -lvcruntime140 -o build\lib.win-amd64-3.6\polylearn\loss_fast.cp36-win_amd64.pyd
building 'polylearn.cd_direct_fast' extension
compiling C++ sources
C compiler: g++ -g -DDEBUG -DMS_WIN64 -O0 -Wall

compile options: '-DNPY_MINGW_USE_CUSTOM_MSVCR -D__MSVCRT_VERSION__=0x1900 -IC:\Users\sndr\Anaconda3\lib\site-packages\numpy\core\include -IC:\Users\sndr\Anaconda3\lib\site-packages\numpy\core\include -IC:\Users\sndr\Anaconda3\include -IC:\Users\sndr\Anaconda3\include -c'
g++ -g -DDEBUG -DMS_WIN64 -O0 -Wall -DNPY_MINGW_USE_CUSTOM_MSVCR -D__MSVCRT_VERSION__=0x1900 -IC:\Users\sndr\Anaconda3\lib\site-packages\numpy\core\include -IC:\Users\sndr\Anaconda3\lib\site-packages\numpy\core\include -IC:\Users\sndr\Anaconda3\include -IC:\Users\sndr\Anaconda3\include -c polylearn\cd_direct_fast.cpp -o build\temp.win-amd64-3.6\Release\polylearn\cd_direct_fast.o
polylearn\cd_direct_fast.cpp: In function 'PyTypeObject* __Pyx_ImportType(PyObject*, const char*, const char*, size_t, __Pyx_ImportType_CheckSize)':
polylearn\cd_direct_fast.cpp:20069:53: warning: unknown conversion type character 'z' in format [-Wformat=]
             module_name, class_name, size, basicsize);
                                                     ^
polylearn\cd_direct_fast.cpp:20069:53: warning: unknown conversion type character 'z' in format [-Wformat=]
polylearn\cd_direct_fast.cpp:20069:53: warning: too many arguments for format [-Wformat-extra-args]
g++ -g -shared build\temp.win-amd64-3.6\Release\polylearn\cd_direct_fast.o -LC:\Users\sndr\Anaconda3\libs -LC:\Users\sndr\Anaconda3\PCbuild\amd64 -lpython36 -lvcruntime140 -o build\lib.win-amd64-3.6\polylearn\cd_direct_fast.cp36-win_amd64.pyd
building 'polylearn.cd_linear_fast' extension
compiling C++ sources
C compiler: g++ -g -DDEBUG -DMS_WIN64 -O0 -Wall

compile options: '-DNPY_MINGW_USE_CUSTOM_MSVCR -D__MSVCRT_VERSION__=0x1900 -IC:\Users\sndr\Anaconda3\lib\site-packages\numpy\core\include -IC:\Users\sndr\Anaconda3\lib\site-packages\numpy\core\include -IC:\Users\sndr\Anaconda3\include -IC:\Users\sndr\Anaconda3\include -c'
g++ -g -DDEBUG -DMS_WIN64 -O0 -Wall -DNPY_MINGW_USE_CUSTOM_MSVCR -D__MSVCRT_VERSION__=0x1900 -IC:\Users\sndr\Anaconda3\lib\site-packages\numpy\core\include -IC:\Users\sndr\Anaconda3\lib\site-packages\numpy\core\include -IC:\Users\sndr\Anaconda3\include -IC:\Users\sndr\Anaconda3\include -c polylearn\cd_linear_fast.cpp -o build\temp.win-amd64-3.6\Release\polylearn\cd_linear_fast.o
polylearn\cd_linear_fast.cpp: In function 'PyTypeObject* __Pyx_ImportType(PyObject*, const char*, const char*, size_t, __Pyx_ImportType_CheckSize)':
polylearn\cd_linear_fast.cpp:18970:53: warning: unknown conversion type character 'z' in format [-Wformat=]
             module_name, class_name, size, basicsize);
                                                     ^
polylearn\cd_linear_fast.cpp:18970:53: warning: unknown conversion type character 'z' in format [-Wformat=]
polylearn\cd_linear_fast.cpp:18970:53: warning: too many arguments for format [-Wformat-extra-args]
g++ -g -shared build\temp.win-amd64-3.6\Release\polylearn\cd_linear_fast.o -LC:\Users\sndr\Anaconda3\libs -LC:\Users\sndr\Anaconda3\PCbuild\amd64 -lpython36 -lvcruntime140 -o build\lib.win-amd64-3.6\polylearn\cd_linear_fast.cp36-win_amd64.pyd
building 'polylearn.cd_lifted_fast' extension
compiling C++ sources
C compiler: g++ -g -DDEBUG -DMS_WIN64 -O0 -Wall

compile options: '-DNPY_MINGW_USE_CUSTOM_MSVCR -D__MSVCRT_VERSION__=0x1900 -IC:\Users\sndr\Anaconda3\lib\site-packages\numpy\core\include -IC:\Users\sndr\Anaconda3\lib\site-packages\numpy\core\include -IC:\Users\sndr\Anaconda3\include -IC:\Users\sndr\Anaconda3\include -c'
g++ -g -DDEBUG -DMS_WIN64 -O0 -Wall -DNPY_MINGW_USE_CUSTOM_MSVCR -D__MSVCRT_VERSION__=0x1900 -IC:\Users\sndr\Anaconda3\lib\site-packages\numpy\core\include -IC:\Users\sndr\Anaconda3\lib\site-packages\numpy\core\include -IC:\Users\sndr\Anaconda3\include -IC:\Users\sndr\Anaconda3\include -c polylearn\cd_lifted_fast.cpp -o build\temp.win-amd64-3.6\Release\polylearn\cd_lifted_fast.o
polylearn\cd_lifted_fast.cpp: In function 'PyTypeObject* __Pyx_ImportType(PyObject*, const char*, const char*, size_t, __Pyx_ImportType_CheckSize)':
polylearn\cd_lifted_fast.cpp:20222:53: warning: unknown conversion type character 'z' in format [-Wformat=]
             module_name, class_name, size, basicsize);
                                                     ^
polylearn\cd_lifted_fast.cpp:20222:53: warning: unknown conversion type character 'z' in format [-Wformat=]
polylearn\cd_lifted_fast.cpp:20222:53: warning: too many arguments for format [-Wformat-extra-args]
g++ -g -shared build\temp.win-amd64-3.6\Release\polylearn\cd_lifted_fast.o -LC:\Users\sndr\Anaconda3\libs -LC:\Users\sndr\Anaconda3\PCbuild\amd64 -lpython36 -lvcruntime140 -o build\lib.win-amd64-3.6\polylearn\cd_lifted_fast.cp36-win_amd64.pyd
Warning: Assuming default configuration (polylearn\tests/{setup_tests,setup}.py was not found)
E:\Factirization_Machines\code\polylearn_master_Aug7\polylearn-master>
Sandy4321 commented 5 years ago

second step for installations

Microsoft Windows [Version 10.0.17763.615]
(c) 2018 Microsoft Corporation. All rights reserved.

E:\Factirization_Machines\code\polylearn_master_Aug7\polylearn-master>python setup.py install
Appending polylearn.tests configuration to polylearn
Ignoring attempt to set 'name' (from 'polylearn' to 'polylearn.tests')
Appending polylearn configuration to
Ignoring attempt to set 'name' (from '' to 'polylearn')
running install
running bdist_egg
running egg_info
running build_src
build_src
building extension "polylearn.loss_fast" sources
building extension "polylearn.cd_direct_fast" sources
building extension "polylearn.cd_linear_fast" sources
building extension "polylearn.cd_lifted_fast" sources
build_src: building npy-pkg config files
creating polylearn.egg-info
writing polylearn.egg-info\PKG-INFO
writing dependency_links to polylearn.egg-info\dependency_links.txt
writing top-level names to polylearn.egg-info\top_level.txt
writing manifest file 'polylearn.egg-info\SOURCES.txt'
reading manifest file 'polylearn.egg-info\SOURCES.txt'
writing manifest file 'polylearn.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
running build_ext
customize Mingw32CCompiler
customize Mingw32CCompiler using build_ext
customize Mingw32CCompiler
customize Mingw32CCompiler using build_ext
creating build\bdist.win-amd64
creating build\bdist.win-amd64\egg
creating build\bdist.win-amd64\egg\polylearn
copying build\lib.win-amd64-3.6\polylearn\base.py -> build\bdist.win-amd64\egg\polylearn
copying build\lib.win-amd64-3.6\polylearn\cd_direct_fast.cp36-win_amd64.pyd -> build\bdist.win-amd64\egg\polylearn
copying build\lib.win-amd64-3.6\polylearn\cd_lifted_fast.cp36-win_amd64.pyd -> build\bdist.win-amd64\egg\polylearn
copying build\lib.win-amd64-3.6\polylearn\cd_linear_fast.cp36-win_amd64.pyd -> build\bdist.win-amd64\egg\polylearn
copying build\lib.win-amd64-3.6\polylearn\factorization_machine.py -> build\bdist.win-amd64\egg\polylearn
copying build\lib.win-amd64-3.6\polylearn\kernels.py -> build\bdist.win-amd64\egg\polylearn
copying build\lib.win-amd64-3.6\polylearn\loss.py -> build\bdist.win-amd64\egg\polylearn
copying build\lib.win-amd64-3.6\polylearn\loss_fast.cp36-win_amd64.pyd -> build\bdist.win-amd64\egg\polylearn
copying build\lib.win-amd64-3.6\polylearn\polynomial_network.py -> build\bdist.win-amd64\egg\polylearn
copying build\lib.win-amd64-3.6\polylearn\setup.py -> build\bdist.win-amd64\egg\polylearn
creating build\bdist.win-amd64\egg\polylearn\tests
copying build\lib.win-amd64-3.6\polylearn\tests\test_cd_linear.py -> build\bdist.win-amd64\egg\polylearn\tests
copying build\lib.win-amd64-3.6\polylearn\tests\test_common.py -> build\bdist.win-amd64\egg\polylearn\tests
copying build\lib.win-amd64-3.6\polylearn\tests\test_factorization_machine.py -> build\bdist.win-amd64\egg\polylearn\tests
copying build\lib.win-amd64-3.6\polylearn\tests\test_kernels.py -> build\bdist.win-amd64\egg\polylearn\tests
copying build\lib.win-amd64-3.6\polylearn\tests\test_polynomial_network.py -> build\bdist.win-amd64\egg\polylearn\tests
copying build\lib.win-amd64-3.6\polylearn\tests\__init__.py -> build\bdist.win-amd64\egg\polylearn\tests
copying build\lib.win-amd64-3.6\polylearn\__init__.py -> build\bdist.win-amd64\egg\polylearn
byte-compiling build\bdist.win-amd64\egg\polylearn\base.py to base.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\polylearn\factorization_machine.py to factorization_machine.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\polylearn\kernels.py to kernels.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\polylearn\loss.py to loss.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\polylearn\polynomial_network.py to polynomial_network.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\polylearn\setup.py to setup.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\polylearn\tests\test_cd_linear.py to test_cd_linear.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\polylearn\tests\test_common.py to test_common.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\polylearn\tests\test_factorization_machine.py to test_factorization_machine.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\polylearn\tests\test_kernels.py to test_kernels.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\polylearn\tests\test_polynomial_network.py to test_polynomial_network.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\polylearn\tests\__init__.py to __init__.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\polylearn\__init__.py to __init__.cpython-36.pyc
creating stub loader for polylearn\loss_fast.cp36-win_amd64.pyd
creating stub loader for polylearn\cd_direct_fast.cp36-win_amd64.pyd
creating stub loader for polylearn\cd_linear_fast.cp36-win_amd64.pyd
creating stub loader for polylearn\cd_lifted_fast.cp36-win_amd64.pyd
byte-compiling build\bdist.win-amd64\egg\polylearn\loss_fast.py to loss_fast.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\polylearn\cd_direct_fast.py to cd_direct_fast.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\polylearn\cd_linear_fast.py to cd_linear_fast.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\polylearn\cd_lifted_fast.py to cd_lifted_fast.cpython-36.pyc
creating build\bdist.win-amd64\egg\EGG-INFO
copying polylearn.egg-info\PKG-INFO -> build\bdist.win-amd64\egg\EGG-INFO
copying polylearn.egg-info\SOURCES.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying polylearn.egg-info\dependency_links.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying polylearn.egg-info\not-zip-safe -> build\bdist.win-amd64\egg\EGG-INFO
copying polylearn.egg-info\top_level.txt -> build\bdist.win-amd64\egg\EGG-INFO
writing build\bdist.win-amd64\egg\EGG-INFO\native_libs.txt
creating dist
creating 'dist\polylearn-0.1.dev0-py3.6-win-amd64.egg' and adding 'build\bdist.win-amd64\egg' to it
removing 'build\bdist.win-amd64\egg' (and everything under it)
Processing polylearn-0.1.dev0-py3.6-win-amd64.egg
creating c:\users\sndr\anaconda3\lib\site-packages\polylearn-0.1.dev0-py3.6-win-amd64.egg
Extracting polylearn-0.1.dev0-py3.6-win-amd64.egg to c:\users\sndr\anaconda3\lib\site-packages
Adding polylearn 0.1.dev0 to easy-install.pth file

Installed c:\users\sndr\anaconda3\lib\site-packages\polylearn-0.1.dev0-py3.6-win-amd64.egg
Processing dependencies for polylearn==0.1.dev0
Finished processing dependencies for polylearn==0.1.dev0
Warning: Assuming default configuration (polylearn\tests/{setup_tests,setup}.py was not found)
E:\Factirization_Machines\code\polylearn_master_Aug7\polylearn-master>
Sandy4321 commented 5 years ago

third step

Microsoft Windows [Version 10.0.17763.615]
(c) 2018 Microsoft Corporation. All rights reserved.

E:\Factirization_Machines\code\polylearn_master_Aug7\polylearn-master>conda install -c conda-forge sklearn-contrib-lightning
Collecting package metadata (repodata.json): done
Solving environment: failed
Initial quick solve with frozen env failed.  Unfreezing env and trying again.
Solving environment: done

## Package Plan ##

  environment location: C:\Users\sndr\Anaconda3

  added / updated specs:
    - sklearn-contrib-lightning

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    conda-4.7.11               |           py36_0         3.0 MB  conda-forge
    numexpr-2.6.6              |           py36_0         124 KB  conda-forge
    numpy-1.11.3               |  py36h35d8231_12          17 KB
    numpy-base-1.11.3          |  py36hc3f5095_12         3.4 MB
    pandas-0.23.4              |py36h830ac7b_1000         8.7 MB  conda-forge
    sklearn-contrib-lightning-0.4.0|      np111py36_1         360 KB  conda-forge
    stumpy-1.0                 |             py_0          19 KB  conda-forge
    xarray-0.10.7              |           py36_0         738 KB
    ------------------------------------------------------------
                                           Total:        16.3 MB

The following NEW packages will be INSTALLED:

  sklearn-contrib-l~ conda-forge/win-64::sklearn-contrib-lightning-0.4.0-np111py36_1

The following packages will be UPDATED:

  conda                                       4.7.10-py36_0 --> 4.7.11-py36_0

The following packages will be DOWNGRADED:

  numexpr                           2.6.9-py36h6538335_1000 --> 2.6.6-py36_0
  numpy                               1.16.4-py36h19fb1c0_0 --> 1.11.3-py36h35d8231_12
  numpy-base                          1.16.4-py36hc3f5095_0 --> 1.11.3-py36hc3f5095_12
  pandas                              0.24.2-py36h6538335_0 --> 0.23.4-py36h830ac7b_1000
  stumpy                                           1.0-py_1 --> 1.0-py_0
  xarray                                      0.11.3-py36_0 --> 0.10.7-py36_0

Proceed ([y]/n)? y

Downloading and Extracting Packages
sklearn-contrib-ligh | 360 KB    | ############################################################################ | 100%
pandas-0.23.4        | 8.7 MB    | ############################################################################ | 100%
numexpr-2.6.6        | 124 KB    | ############################################################################ | 100%
conda-4.7.11         | 3.0 MB    | ############################################################################ | 100%
xarray-0.10.7        | 738 KB    | ############################################################################ | 100%
numpy-base-1.11.3    | 3.4 MB    | ############################################################################ | 100%
numpy-1.11.3         | 17 KB     | ############################################################################ | 100%
stumpy-1.0           | 19 KB     | ############################################################################ | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done

E:\Factirization_Machines\code\polylearn_master_Aug7\polylearn-master>
Sandy4321 commented 5 years ago

message for package call

Microsoft Windows [Version 10.0.17763.615]
(c) 2018 Microsoft Corporation. All rights reserved.

E:\Factirization_Machines\code\polylearn_master_Aug7\polylearn-master>python
Python 3.6.7 (default, Feb 28 2019, 07:28:18) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import polylearn as pl
C:\Users\sndr\Anaconda3\lib\site-packages\sklearn\externals\six.py:31: DeprecationWarning: The module is deprecated in version 0.21 and will be removed in version 0.23 since we've dropped support for Python 2.7. Please rely on the official version of six (https://pypi.org/project/six/).
  "(https://pypi.org/project/six/).", DeprecationWarning)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "E:\Factirization_Machines\code\polylearn_master_Aug7\polylearn-master\polylearn\__init__.py", line 1, in <module>
    from .factorization_machine import FactorizationMachineRegressor
  File "E:\Factirization_Machines\code\polylearn_master_Aug7\polylearn-master\polylearn\factorization_machine.py", line 24, in <module>
    from .base import _BasePoly, _PolyClassifierMixin, _PolyRegressorMixin
  File "E:\Factirization_Machines\code\polylearn_master_Aug7\polylearn-master\polylearn\base.py", line 12, in <module>
    from .loss import CLASSIFICATION_LOSSES, REGRESSION_LOSSES
  File "E:\Factirization_Machines\code\polylearn_master_Aug7\polylearn-master\polylearn\loss.py", line 4, in <module>
    from .loss_fast import Squared, SquaredHinge, Logistic
ModuleNotFoundError: No module named 'polylearn.loss_fast'
>>>
vene commented 5 years ago

the windows commands should be the same except for the sudo (which is not necessary)

In any case it's recommended to use pip instead of setup.py. Just download the polylearn code, navigate to the main dir and run

pip install .
Sandy4321 commented 5 years ago

I see, what I need to do now is uninstall polylearn what would be the best way to it ?

vene commented 5 years ago

like any other python package!

In general I recommend using virtualenvs, perhaps you can create a new empty virtualenv and try to install what you need in there.

Sandy4321 commented 5 years ago

ok Microsoft Windows [Version 10.0.17763.615] (c) 2018 Microsoft Corporation. All rights reserved.

C:\WINDOWS\System32>pip uninstall polylearn Uninstalling polylearn-0.1.dev0: Would remove: c:\users\sndr\anaconda3\lib\site-packages\polylearn-0.1.dev0-py3.6-win-amd64.egg Proceed (y/n)? y Successfully uninstalled polylearn-0.1.dev0

C:\WINDOWS\System32>

Sandy4321 commented 5 years ago

now installation fails

Microsoft Windows [Version 10.0.17763.615]
(c) 2018 Microsoft Corporation. All rights reserved.

E:\Factirization_Machines\code\polylearn_master_Aug7\polylearn-master>pip install .
Processing e:\factirization_machines\code\polylearn_master_aug7\polylearn-master
Building wheels for collected packages: polylearn
  Building wheel for polylearn (setup.py) ... error
  Complete output from command C:\Users\sndr\Anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\sndr\\AppData\\Local\\Temp\\pip-req-build-hpc5j7sj\\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\sndr\AppData\Local\Temp\pip-wheel-vzqr3nam --python-tag cp36:
  Appending polylearn.tests configuration to polylearn
  Ignoring attempt to set 'name' (from 'polylearn' to 'polylearn.tests')
  Appending polylearn configuration to
  Ignoring attempt to set 'name' (from '' to 'polylearn')
  running bdist_wheel
  running build
  running config_cc
  unifing config_cc, config, build_clib, build_ext, build commands --compiler options
  running config_fc
  unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
  running build_src
  build_src
  building extension "polylearn.loss_fast" sources
  building extension "polylearn.cd_direct_fast" sources
  building extension "polylearn.cd_linear_fast" sources
  building extension "polylearn.cd_lifted_fast" sources
  build_src: building npy-pkg config files
  running build_py
  running build_ext
  Looking for python36.dll
  Warning: Assuming default configuration (polylearn\tests/{setup_tests,setup}.py was not found)Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "C:\Users\sndr\AppData\Local\Temp\pip-req-build-hpc5j7sj\setup.py", line 64, in <module>
      'Operating System :: MacOS'
    File "C:\Users\sndr\Anaconda3\lib\site-packages\numpy\distutils\core.py", line 169, in setup
      return old_setup(**new_attr)
    File "C:\Users\sndr\Anaconda3\lib\site-packages\setuptools\__init__.py", line 145, in setup
      return distutils.core.setup(**attrs)
    File "C:\Users\sndr\Anaconda3\lib\distutils\core.py", line 148, in setup
      dist.run_commands()
    File "C:\Users\sndr\Anaconda3\lib\distutils\dist.py", line 955, in run_commands
      self.run_command(cmd)
    File "C:\Users\sndr\Anaconda3\lib\distutils\dist.py", line 974, in run_command
      cmd_obj.run()
    File "C:\Users\sndr\Anaconda3\lib\site-packages\wheel\bdist_wheel.py", line 192, in run
      self.run_command('build')
    File "C:\Users\sndr\Anaconda3\lib\distutils\cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "C:\Users\sndr\Anaconda3\lib\distutils\dist.py", line 974, in run_command
      cmd_obj.run()
    File "C:\Users\sndr\Anaconda3\lib\site-packages\numpy\distutils\command\build.py", line 47, in run
      old_build.run(self)
    File "C:\Users\sndr\Anaconda3\lib\distutils\command\build.py", line 135, in run
      self.run_command(cmd_name)
    File "C:\Users\sndr\Anaconda3\lib\distutils\cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "C:\Users\sndr\Anaconda3\lib\distutils\dist.py", line 974, in run_command
      cmd_obj.run()
    File "C:\Users\sndr\Anaconda3\lib\site-packages\numpy\distutils\command\build_ext.py", line 117, in run
      force=self.force)
    File "C:\Users\sndr\Anaconda3\lib\site-packages\numpy\distutils\ccompiler.py", line 596, in new_compiler
      compiler = klass(None, dry_run, force)
    File "C:\Users\sndr\Anaconda3\lib\site-packages\numpy\distutils\mingw32ccompiler.py", line 96, in __init__
      msvcr_success = build_msvcr_library()
    File "C:\Users\sndr\Anaconda3\lib\site-packages\numpy\distutils\mingw32ccompiler.py", line 329, in build_msvcr_library
      if int(msvcr_name.lstrip('msvcr')) < 80:
  AttributeError: 'NoneType' object has no attribute 'lstrip'

  ----------------------------------------
  Failed building wheel for polylearn
  Running setup.py clean for polylearn
Failed to build polylearn
Installing collected packages: polylearn
  Running setup.py install for polylearn ... error
    Complete output from command C:\Users\sndr\Anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\sndr\\AppData\\Local\\Temp\\pip-req-build-hpc5j7sj\\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\sndr\AppData\Local\Temp\pip-record-shi0ke4s\install-record.txt --single-version-externally-managed --compile:
    Appending polylearn.tests configuration to polylearn
    Ignoring attempt to set 'name' (from 'polylearn' to 'polylearn.tests')
    Appending polylearn configuration to
    Ignoring attempt to set 'name' (from '' to 'polylearn')
    running install
    running build
    running config_cc
    unifing config_cc, config, build_clib, build_ext, build commands --compiler options
    running config_fc
    unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
    running build_src
    build_src
    building extension "polylearn.loss_fast" sources
    building extension "polylearn.cd_direct_fast" sources
    building extension "polylearn.cd_linear_fast" sources
    building extension "polylearn.cd_lifted_fast" sources
    build_src: building npy-pkg config files
    running build_py
    creating build
    creating build\lib.win-amd64-3.6
    creating build\lib.win-amd64-3.6\polylearn
    copying polylearn\base.py -> build\lib.win-amd64-3.6\polylearn
    copying polylearn\factorization_machine.py -> build\lib.win-amd64-3.6\polylearn
    copying polylearn\kernels.py -> build\lib.win-amd64-3.6\polylearn
    copying polylearn\loss.py -> build\lib.win-amd64-3.6\polylearn
    copying polylearn\polynomial_network.py -> build\lib.win-amd64-3.6\polylearn
    copying polylearn\setup.py -> build\lib.win-amd64-3.6\polylearn
    copying polylearn\__init__.py -> build\lib.win-amd64-3.6\polylearn
    creating build\lib.win-amd64-3.6\polylearn\tests
    copying polylearn\tests\test_cd_linear.py -> build\lib.win-amd64-3.6\polylearn\tests
    copying polylearn\tests\test_common.py -> build\lib.win-amd64-3.6\polylearn\tests
    copying polylearn\tests\test_factorization_machine.py -> build\lib.win-amd64-3.6\polylearn\tests
    copying polylearn\tests\test_kernels.py -> build\lib.win-amd64-3.6\polylearn\tests
    copying polylearn\tests\test_polynomial_network.py -> build\lib.win-amd64-3.6\polylearn\tests
    copying polylearn\tests\__init__.py -> build\lib.win-amd64-3.6\polylearn\tests
    running build_ext
    Looking for python36.dll
    Warning: Assuming default configuration (polylearn\tests/{setup_tests,setup}.py was not found)Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\sndr\AppData\Local\Temp\pip-req-build-hpc5j7sj\setup.py", line 64, in <module>
        'Operating System :: MacOS'
      File "C:\Users\sndr\Anaconda3\lib\site-packages\numpy\distutils\core.py", line 169, in setup
        return old_setup(**new_attr)
      File "C:\Users\sndr\Anaconda3\lib\site-packages\setuptools\__init__.py", line 145, in setup
        return distutils.core.setup(**attrs)
      File "C:\Users\sndr\Anaconda3\lib\distutils\core.py", line 148, in setup
        dist.run_commands()
      File "C:\Users\sndr\Anaconda3\lib\distutils\dist.py", line 955, in run_commands
        self.run_command(cmd)
      File "C:\Users\sndr\Anaconda3\lib\distutils\dist.py", line 974, in run_command
        cmd_obj.run()
      File "C:\Users\sndr\Anaconda3\lib\site-packages\numpy\distutils\command\install.py", line 62, in run
        r = self.setuptools_run()
      File "C:\Users\sndr\Anaconda3\lib\site-packages\numpy\distutils\command\install.py", line 36, in setuptools_run
        return distutils_install.run(self)
      File "C:\Users\sndr\Anaconda3\lib\distutils\command\install.py", line 545, in run
        self.run_command('build')
      File "C:\Users\sndr\Anaconda3\lib\distutils\cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "C:\Users\sndr\Anaconda3\lib\distutils\dist.py", line 974, in run_command
        cmd_obj.run()
      File "C:\Users\sndr\Anaconda3\lib\site-packages\numpy\distutils\command\build.py", line 47, in run
        old_build.run(self)
      File "C:\Users\sndr\Anaconda3\lib\distutils\command\build.py", line 135, in run
        self.run_command(cmd_name)
      File "C:\Users\sndr\Anaconda3\lib\distutils\cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "C:\Users\sndr\Anaconda3\lib\distutils\dist.py", line 974, in run_command
        cmd_obj.run()
      File "C:\Users\sndr\Anaconda3\lib\site-packages\numpy\distutils\command\build_ext.py", line 117, in run
        force=self.force)
      File "C:\Users\sndr\Anaconda3\lib\site-packages\numpy\distutils\ccompiler.py", line 596, in new_compiler
        compiler = klass(None, dry_run, force)
      File "C:\Users\sndr\Anaconda3\lib\site-packages\numpy\distutils\mingw32ccompiler.py", line 96, in __init__
        msvcr_success = build_msvcr_library()
      File "C:\Users\sndr\Anaconda3\lib\site-packages\numpy\distutils\mingw32ccompiler.py", line 329, in build_msvcr_library
        if int(msvcr_name.lstrip('msvcr')) < 80:
    AttributeError: 'NoneType' object has no attribute 'lstrip'

    ----------------------------------------
Command "C:\Users\sndr\Anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\sndr\\AppData\\Local\\Temp\\pip-req-build-hpc5j7sj\\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\sndr\AppData\Local\Temp\pip-record-shi0ke4s\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\sndr\AppData\Local\Temp\pip-req-build-hpc5j7sj\

E:\Factirization_Machines\code\polylearn_master_Aug7\polylearn-master>
vene commented 5 years ago

As the filenames suggest, it is still trying to use mingw32 and not msvc. Please direct your distutils to use msvc, and ensure you have the correct msvc installed (corresponding to your python version), as per the link in my previous reply.

Sandy4321 commented 5 years ago

do you mean this https://stackoverflow.com/questions/37242259/cannot-configure-python-3-5-to-use-visual-c-compiler-on-windows Try following:

Install Visual Studio Community 2015 with C++ checked Make sure environment variable for VS is set In PYTHONPATH\Lib\distutils dir create (or edit) file distutils.cfg with following lines: [build] compiler=msvc

vene commented 5 years ago

the distutils.cfg part yes, but watch out because python 3.6 might require a different version of msvc than python 3.5, I am not sure, check the link I sent to you in issue #12 (btw why are there two issues here? I am confused.)

Sandy4321 commented 5 years ago

I am not sure, check the link I sent to you in issue #12 (btw why are there two issues here? I am confused.) it is the same, I try to use all ways , so lets focus on it is still trying to use mingw32 and not msvc. I found distutils.cfg at C:\Users\sndr\Anaconda3\pkgs\libpython-2.1-py36_0\Lib\distutils

and it is written [build]
compiler=mingw32 now try to change it to compiler=msvc

Sandy4321 commented 5 years ago

installation is successful, thank you very much, error message is the same image

Sandy4321 commented 5 years ago

Microsoft Windows [Version 10.0.17763.615] (c) 2018 Microsoft Corporation. All rights reserved.

E:\Factirization_Machines\code\polylearn_master_Aug7\polylearn-master>pip install . Processing e:\factirization_machines\code\polylearn_master_aug7\polylearn-master Building wheels for collected packages: polylearn Building wheel for polylearn (setup.py) ... done Stored in directory: C:\Users\sndr\AppData\Local\pip\Cache\wheels\5e\3a\23\e2029f7113389ad1576c6d0400e57c310545794970ffb58f24 Successfully built polylearn Installing collected packages: polylearn Successfully installed polylearn-0.1.dev0

E:\Factirization_Machines\code\polylearn_master_Aug7\polylearn-master>python Python 3.6.7 (default, Feb 28 2019, 07:28:18) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.

import polylearn as pl C:\Users\sndr\Anaconda3\lib\site-packages\sklearn\externals\six.py:31: DeprecationWarning: The module is deprecated in version 0.21 and will be removed in version 0.23 since we've dropped support for Python 2.7. Please rely on the official version of six (https://pypi.org/project/six/). "(https://pypi.org/project/six/).", DeprecationWarning) Traceback (most recent call last): File "", line 1, in File "E:\Factirization_Machines\code\polylearn_master_Aug7\polylearn-master\polylearn__init__.py", line 1, in from .factorization_machine import FactorizationMachineRegressor File "E:\Factirization_Machines\code\polylearn_master_Aug7\polylearn-master\polylearn\factorization_machine.py", line 24, in from .base import _BasePoly, _PolyClassifierMixin, _PolyRegressorMixin File "E:\Factirization_Machines\code\polylearn_master_Aug7\polylearn-master\polylearn\base.py", line 12, in from .loss import CLASSIFICATION_LOSSES, REGRESSION_LOSSES File "E:\Factirization_Machines\code\polylearn_master_Aug7\polylearn-master\polylearn\loss.py", line 4, in from .loss_fast import Squared, SquaredHinge, Logistic ModuleNotFoundError: No module named 'polylearn.loss_fast'

vene commented 5 years ago

you might have to navigate outside of the polylearn dir before running python and importing.

Try cd C:\ or similar

On Wed, Aug 7, 2019 at 8:32 PM Sandy4321 notifications@github.com wrote:

Microsoft Windows [Version 10.0.17763.615] (c) 2018 Microsoft Corporation. All rights reserved.

E:\Factirization_Machines\code\polylearn_master_Aug7\polylearn-master>pip install . Processing e:\factirization_machines\code\polylearn_master_aug7\polylearn-master Building wheels for collected packages: polylearn Building wheel for polylearn (setup.py) ... done Stored in directory: C:\Users\sndr\AppData\Local\pip\Cache\wheels\5e\3a\23\e2029f7113389ad1576c6d0400e57c310545794970ffb58f24 Successfully built polylearn Installing collected packages: polylearn Successfully installed polylearn-0.1.dev0

E:\Factirization_Machines\code\polylearn_master_Aug7\polylearn-master>python Python 3.6.7 (default, Feb 28 2019, 07:28:18) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.

import polylearn as pl C:\Users\sndr\Anaconda3\lib\site-packages\sklearn\externals\six.py:31: DeprecationWarning: The module is deprecated in version 0.21 and will be removed in version 0.23 since we've dropped support for Python 2.7. Please rely on the official version of six (https://pypi.org/project/six/). "(https://pypi.org/project/six/).", DeprecationWarning) Traceback (most recent call last): File "", line 1, in File "E:\Factirization_Machines\code\polylearn_masterAug7\polylearn-master\polylearn init_.py", line 1, in from .factorization_machine import FactorizationMachineRegressor File "E:\Factirization_Machines\code\polylearn_master_Aug7\polylearn-master\polylearn\factorization_machine.py", line 24, in from .base import _BasePoly, _PolyClassifierMixin, _PolyRegressorMixin File "E:\Factirization_Machines\code\polylearn_master_Aug7\polylearn-master\polylearn\base.py", line 12, in from .loss import CLASSIFICATION_LOSSES, REGRESSION_LOSSES File "E:\Factirization_Machines\code\polylearn_master_Aug7\polylearn-master\polylearn\loss.py", line 4, in from .loss_fast import Squared, SquaredHinge, Logistic ModuleNotFoundError: No module named 'polylearn.loss_fast'

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/scikit-learn-contrib/polylearn/issues/13?email_source=notifications&email_token=AAB3AUKYLMG6X2ETT6ARQL3QDMPLDA5CNFSM4EMXZSQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3ZPEZA#issuecomment-519238244, or mute the thread https://github.com/notifications/unsubscribe-auth/AAB3AULW7OXXBDRQ2NCR5YLQDMPLDANCNFSM4EMXZSQQ .

Sandy4321 commented 5 years ago

super it works now image

Sandy4321 commented 5 years ago

lets try example but sklearn.metrics.scorer import mean_squared_error_scorer is not working working around by using from sklearn.metrics import mean_squared_error gives error """

Plotting regularization paths using warm restarts.

In this example we show how to use the warm_start attribute to efficiently compute the regularization path for a polynomial network when optimizing for the beta regularization hyperparameter. """ print(doc)

Author: Vlad Niculae vlad@vene.ro

License: Simplified BSD

import numpy as np

import matplotlib.pyplot as plt

from sklearn.linear_model import Ridge from sklearn.kernel_ridge import KernelRidge from sklearn.datasets import load_boston

from sklearn.cross_validation import train_test_split

from sklearn.model_selection import train_test_split

from sklearn.metrics.scorer import mean_squared_error_scorer

from sklearn.metrics import mean_squared_error from sklearn.preprocessing import StandardScaler

from polylearn import PolynomialNetworkRegressor

File "e:\Factirization_Machines\code\polylearn_master_Aug7\polylearn-master\examples\plot_regularization_path_changed.py", line 57, in <module>
  test_mse = mean_squared_error(ridge, X_test_sc, y_test_sc)
File "C:\Users\sndr\Anaconda3\Lib\site-packages\sklearn\metrics\regression.py", line 241, in mean_squared_error
  y_true, y_pred, multioutput)
File "C:\Users\sndr\Anaconda3\Lib\site-packages\sklearn\metrics\regression.py", line 77, in _check_reg_targets
  check_consistent_length(y_true, y_pred)
File "C:\Users\sndr\Anaconda3\Lib\site-packages\sklearn\utils\validation.py", line 201, in check_consistent_length
  lengths = [_num_samples(X) for X in arrays if X is not None]
File "C:\Users\sndr\Anaconda3\Lib\site-packages\sklearn\utils\validation.py", line 201, in <listcomp>
  lengths = [_num_samples(X) for X in arrays if X is not None]
File "C:\Users\sndr\Anaconda3\Lib\site-packages\sklearn\utils\validation.py", line 136, in _num_samples
  'estimator %s' % x)

builtins.TypeError: Expected sequence or array-like, got estimator Ridge(alpha=0.10000000000000001, copy_X=True, fit_intercept=True, max_iter=None,
normalize=False, random_state=None, solver='auto', tol=0.001)
Sandy4321 commented 5 years ago

I try to install polylern on another computer but on the computer there is no distutils.cfg file to do this change may you kindly advise what can be done in this case? [build] compiler=mingw32 now try to change it to [build] compiler=msvc

error massage is

D:\Python instalations\polylearn-master\polylearn-master>pip install .

Processing d:\python instalations\polylearn-master\polylearn-master

Building wheels for collected packages: polylearn

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

    ERROR: Complete output from command 'C:\Users\A123456\AppData\Local\Continuum\anaconda3\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\A123456\\AppData\\Local\\Temp\\pip-req-build-w040ohe6\\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\A123456\AppData\Local\Temp\pip-wheel-bksd8kww' --python-tag cp36:

    ERROR: Appending polylearn.tests configuration to polylearn

    Ignoring attempt to set 'name' (from 'polylearn' to 'polylearn.tests')

    Appending polylearn configuration to

    Ignoring attempt to set 'name' (from '' to 'polylearn')

    running bdist_wheel

    running build

    running config_cc

    unifing config_cc, config, build_clib, build_ext, build commands --compiler options

    running config_fc

    unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options

    running build_src

    build_src

    building extension "polylearn.loss_fast" sources

    building extension "polylearn.cd_direct_fast" sources

    building extension "polylearn.cd_linear_fast" sources

    building extension "polylearn.cd_lifted_fast" sources

    build_src: building npy-pkg config files

    running build_py

    creating build

    creating build\lib.win-amd64-3.6

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

    copying polylearn\base.py -> build\lib.win-amd64-3.6\polylearn

    copying polylearn\factorization_machine.py -> build\lib.win-amd64-3.6\polylearn

    copying polylearn\kernels.py -> build\lib.win-amd64-3.6\polylearn

    copying polylearn\loss.py -> build\lib.win-amd64-3.6\polylearn

    copying polylearn\polynomial_network.py -> build\lib.win-amd64-3.6\polylearn

    copying polylearn\setup.py -> build\lib.win-amd64-3.6\polylearn

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

    creating build\lib.win-amd64-3.6\polylearn\tests

    copying polylearn\tests\test_cd_linear.py -> build\lib.win-amd64-3.6\polylearn\tests

    copying polylearn\tests\test_common.py -> build\lib.win-amd64-3.6\polylearn\tests

    copying polylearn\tests\test_factorization_machine.py -> build\lib.win-amd64-3.6\polylearn\tests

    copying polylearn\tests\test_kernels.py -> build\lib.win-amd64-3.6\polylearn\tests

    copying polylearn\tests\test_polynomial_network.py -> build\lib.win-amd64-3.6\polylearn\tests

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

    running build_ext

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

    customize MSVCCompiler

    customize MSVCCompiler using build_ext

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

    customize MSVCCompiler

    Missing compiler_cxx fix for MSVCCompiler

    customize MSVCCompiler using build_ext

    building 'polylearn.loss_fast' extension

    compiling C sources

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

    cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\lib\site-packages\numpy\core\include -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\lib\site-packages\numpy\core\include -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\include -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\include /EHsc /Tppolylearn\loss_fast.cpp /Fobuild\temp.win-amd64-3.6\Release\polylearn\loss_fast.obj /Zm1000

    Warning: Assuming default configuration (polylearn\tests/{setup_tests,setup}.py was not found)error: Command "cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\lib\site-packages\numpy\core\include -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\lib\site-packages\numpy\core\include -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\include -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\include /EHsc /Tppolylearn\loss_fast.cpp /Fobuild\temp.win-amd64-3.6\Release\polylearn\loss_fast.obj /Zm1000" failed with exit status 127

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

    ERROR: Failed building wheel for polylearn

    Running setup.py clean for polylearn

Failed to build polylearn

Installing collected packages: polylearn

    Running setup.py install for polylearn ... error

        ERROR: Complete output from command 'C:\Users\A123456\AppData\Local\Continuum\anaconda3\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\A123456\\AppData\\Local\\Temp\\pip-req-build-w040ohe6\\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\A123456\AppData\Local\Temp\pip-record-rmbdph40\install-record.txt' --single-version-externally-managed --compile:

        ERROR: Appending polylearn.tests configuration to polylearn

        Ignoring attempt to set 'name' (from 'polylearn' to 'polylearn.tests')

        Appending polylearn configuration to

        Ignoring attempt to set 'name' (from '' to 'polylearn')

        running install

        running build

        running config_cc

        unifing config_cc, config, build_clib, build_ext, build commands --compiler options

        running config_fc

        unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options

        running build_src

        build_src

        building extension "polylearn.loss_fast" sources

        building extension "polylearn.cd_direct_fast" sources

        building extension "polylearn.cd_linear_fast" sources

        building extension "polylearn.cd_lifted_fast" sources

        build_src: building npy-pkg config files

        running build_py

        creating build

        creating build\lib.win-amd64-3.6

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

        copying polylearn\base.py -> build\lib.win-amd64-3.6\polylearn

        copying polylearn\factorization_machine.py -> build\lib.win-amd64-3.6\polylearn

        copying polylearn\kernels.py -> build\lib.win-amd64-3.6\polylearn

        copying polylearn\loss.py -> build\lib.win-amd64-3.6\polylearn

        copying polylearn\polynomial_network.py -> build\lib.win-amd64-3.6\polylearn

        copying polylearn\setup.py -> build\lib.win-amd64-3.6\polylearn

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

        creating build\lib.win-amd64-3.6\polylearn\tests

        copying polylearn\tests\test_cd_linear.py -> build\lib.win-amd64-3.6\polylearn\tests

        copying polylearn\tests\test_common.py -> build\lib.win-amd64-3.6\polylearn\tests

        copying polylearn\tests\test_factorization_machine.py -> build\lib.win-amd64-3.6\polylearn\tests

        copying polylearn\tests\test_kernels.py -> build\lib.win-amd64-3.6\polylearn\tests

       copying polylearn\tests\test_polynomial_network.py -> build\lib.win-amd64-3.6\polylearn\tests

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

        running build_ext

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

        customize MSVCCompiler

        customize MSVCCompiler using build_ext

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

        customize MSVCCompiler

        Missing compiler_cxx fix for MSVCCompiler

        customize MSVCCompiler using build_ext

        building 'polylearn.loss_fast' extension

        compiling C sources

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

        cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\lib\site-packages\numpy\core\include -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\lib\site-packages\numpy\core\include -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\include -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\include /EHsc /Tppolylearn\loss_fast.cpp /Fobuild\temp.win-amd64-3.6\Release\polylearn\loss_fast.obj /Zm1000

        Warning: Assuming default configuration (polylearn\tests/{setup_tests,setup}.py was not found)error: Command "cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\lib\site-packages\numpy\core\include -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\lib\site-packages\numpy\core\include -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\include -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\include /EHsc /Tppolylearn\loss_fast.cpp /Fobuild\temp.win-amd64-3.6\Release\polylearn\loss_fast.obj /Zm1000" failed with exit status 127

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

ERROR: Command "'C:\Users\A123456\AppData\Local\Continuum\anaconda3\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\A123456\\AppData\\Local\\Temp\\pip-req-build-w040ohe6\\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\A123456\AppData\Local\Temp\pip-record-rmbdph40\install-record.txt' --single-version-externally-managed --compile" failed with error code 1 in C:\Users\A123456\AppData\Local\Temp\pip-req-build-w040ohe6\

D:\Python instalations\polylearn-master\polylearn-master>
vene commented 5 years ago

Create the file.

On Wed, Aug 7, 2019, 21:29 Sandy4321 notifications@github.com wrote:

I try to install polylern on another computer but on the computer there is no distutils.cfg file to do this change may you kindly advise what can be done in this case? [build] compiler=mingw32 now try to change it to [build] compiler=msvc

error massage is

D:\Python instalations\polylearn-master\polylearn-master>pip install .

Processing d:\python instalations\polylearn-master\polylearn-master

Building wheels for collected packages: polylearn

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

ERROR: Complete output from command 'C:\Users\A123456\AppData\Local\Continuum\anaconda3\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\A123456\\AppData\\Local\\Temp\\pip-req-build-w040ohe6\\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\A123456\AppData\Local\Temp\pip-wheel-bksd8kww' --python-tag cp36:

ERROR: Appending polylearn.tests configuration to polylearn

Ignoring attempt to set 'name' (from 'polylearn' to 'polylearn.tests')

Appending polylearn configuration to

Ignoring attempt to set 'name' (from '' to 'polylearn')

running bdist_wheel

running build

running config_cc

unifing config_cc, config, build_clib, build_ext, build commands --compiler options

running config_fc

unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options

running build_src

build_src

building extension "polylearn.loss_fast" sources

building extension "polylearn.cd_direct_fast" sources

building extension "polylearn.cd_linear_fast" sources

building extension "polylearn.cd_lifted_fast" sources

build_src: building npy-pkg config files

running build_py

creating build

creating build\lib.win-amd64-3.6

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

copying polylearn\base.py -> build\lib.win-amd64-3.6\polylearn

copying polylearn\factorization_machine.py -> build\lib.win-amd64-3.6\polylearn

copying polylearn\kernels.py -> build\lib.win-amd64-3.6\polylearn

copying polylearn\loss.py -> build\lib.win-amd64-3.6\polylearn

copying polylearn\polynomial_network.py -> build\lib.win-amd64-3.6\polylearn

copying polylearn\setup.py -> build\lib.win-amd64-3.6\polylearn

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

creating build\lib.win-amd64-3.6\polylearn\tests

copying polylearn\tests\test_cd_linear.py -> build\lib.win-amd64-3.6\polylearn\tests

copying polylearn\tests\test_common.py -> build\lib.win-amd64-3.6\polylearn\tests

copying polylearn\tests\test_factorization_machine.py -> build\lib.win-amd64-3.6\polylearn\tests

copying polylearn\tests\test_kernels.py -> build\lib.win-amd64-3.6\polylearn\tests

copying polylearn\tests\test_polynomial_network.py -> build\lib.win-amd64-3.6\polylearn\tests

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

running build_ext

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

customize MSVCCompiler

customize MSVCCompiler using build_ext

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

customize MSVCCompiler

Missing compiler_cxx fix for MSVCCompiler

customize MSVCCompiler using build_ext

building 'polylearn.loss_fast' extension

compiling C sources

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

cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\lib\site-packages\numpy\core\include -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\lib\site-packages\numpy\core\include -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\include -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\include /EHsc /Tppolylearn\loss_fast.cpp /Fobuild\temp.win-amd64-3.6\Release\polylearn\loss_fast.obj /Zm1000

Warning: Assuming default configuration (polylearn\tests/{setup_tests,setup}.py was not found)error: Command "cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\lib\site-packages\numpy\core\include -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\lib\site-packages\numpy\core\include -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\include -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\include /EHsc /Tppolylearn\loss_fast.cpp /Fobuild\temp.win-amd64-3.6\Release\polylearn\loss_fast.obj /Zm1000" failed with exit status 127

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

ERROR: Failed building wheel for polylearn

Running setup.py clean for polylearn

Failed to build polylearn

Installing collected packages: polylearn

Running setup.py install for polylearn ... error

    ERROR: Complete output from command 'C:\Users\A123456\AppData\Local\Continuum\anaconda3\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\A123456\\AppData\\Local\\Temp\\pip-req-build-w040ohe6\\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\A123456\AppData\Local\Temp\pip-record-rmbdph40\install-record.txt' --single-version-externally-managed --compile:

    ERROR: Appending polylearn.tests configuration to polylearn

    Ignoring attempt to set 'name' (from 'polylearn' to 'polylearn.tests')

    Appending polylearn configuration to

    Ignoring attempt to set 'name' (from '' to 'polylearn')

    running install

    running build

    running config_cc

    unifing config_cc, config, build_clib, build_ext, build commands --compiler options

    running config_fc

    unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options

    running build_src

    build_src

    building extension "polylearn.loss_fast" sources

    building extension "polylearn.cd_direct_fast" sources

    building extension "polylearn.cd_linear_fast" sources

    building extension "polylearn.cd_lifted_fast" sources

    build_src: building npy-pkg config files

    running build_py

    creating build

    creating build\lib.win-amd64-3.6

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

    copying polylearn\base.py -> build\lib.win-amd64-3.6\polylearn

    copying polylearn\factorization_machine.py -> build\lib.win-amd64-3.6\polylearn

    copying polylearn\kernels.py -> build\lib.win-amd64-3.6\polylearn

    copying polylearn\loss.py -> build\lib.win-amd64-3.6\polylearn

    copying polylearn\polynomial_network.py -> build\lib.win-amd64-3.6\polylearn

    copying polylearn\setup.py -> build\lib.win-amd64-3.6\polylearn

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

    creating build\lib.win-amd64-3.6\polylearn\tests

    copying polylearn\tests\test_cd_linear.py -> build\lib.win-amd64-3.6\polylearn\tests

    copying polylearn\tests\test_common.py -> build\lib.win-amd64-3.6\polylearn\tests

    copying polylearn\tests\test_factorization_machine.py -> build\lib.win-amd64-3.6\polylearn\tests

    copying polylearn\tests\test_kernels.py -> build\lib.win-amd64-3.6\polylearn\tests

   copying polylearn\tests\test_polynomial_network.py -> build\lib.win-amd64-3.6\polylearn\tests

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

    running build_ext

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

    customize MSVCCompiler

    customize MSVCCompiler using build_ext

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

    customize MSVCCompiler

    Missing compiler_cxx fix for MSVCCompiler

    customize MSVCCompiler using build_ext

    building 'polylearn.loss_fast' extension

    compiling C sources

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

    cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\lib\site-packages\numpy\core\include -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\lib\site-packages\numpy\core\include -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\include -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\include /EHsc /Tppolylearn\loss_fast.cpp /Fobuild\temp.win-amd64-3.6\Release\polylearn\loss_fast.obj /Zm1000

    Warning: Assuming default configuration (polylearn\tests/{setup_tests,setup}.py was not found)error: Command "cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\lib\site-packages\numpy\core\include -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\lib\site-packages\numpy\core\include -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\include -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\include /EHsc /Tppolylearn\loss_fast.cpp /Fobuild\temp.win-amd64-3.6\Release\polylearn\loss_fast.obj /Zm1000" failed with exit status 127

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

ERROR: Command "'C:\Users\A123456\AppData\Local\Continuum\anaconda3\python.exe' -u -c 'import setuptools, tokenize;file='"'"'C:\Users\A123456\AppData\Local\Temp\pip-req-build-w040ohe6\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\A123456\AppData\Local\Temp\pip-record-rmbdph40\install-record.txt' --single-version-externally-managed --compile" failed with error code 1 in C:\Users\A123456\AppData\Local\Temp\pip-req-build-w040ohe6\

D:\Python instalations\polylearn-master\polylearn-master>

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/scikit-learn-contrib/polylearn/issues/13?email_source=notifications&email_token=AAB3AUI4O5B23XKICKLK4GDQDMWC3A5CNFSM4EMXZSQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3ZTWJA#issuecomment-519256868, or mute the thread https://github.com/notifications/unsubscribe-auth/AAB3AUOEW7OQLV5QE7HURWLQDMWC3ANCNFSM4EMXZSQQ .

vene commented 5 years ago

The error in the example must be connected to changes in scikit-learn. What version of scikit-learn do you have installed? It may be older than supported, try upgrading.

(If you are running the latest version, I might have to update the example)

On Wed, Aug 7, 2019, 21:30 Vlad Niculae vlad@vene.ro wrote:

Create the file.

On Wed, Aug 7, 2019, 21:29 Sandy4321 notifications@github.com wrote:

I try to install polylern on another computer but on the computer there is no distutils.cfg file to do this change may you kindly advise what can be done in this case? [build] compiler=mingw32 now try to change it to [build] compiler=msvc

error massage is

D:\Python instalations\polylearn-master\polylearn-master>pip install .

Processing d:\python instalations\polylearn-master\polylearn-master

Building wheels for collected packages: polylearn

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

ERROR: Complete output from command 'C:\Users\A123456\AppData\Local\Continuum\anaconda3\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\A123456\\AppData\\Local\\Temp\\pip-req-build-w040ohe6\\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\A123456\AppData\Local\Temp\pip-wheel-bksd8kww' --python-tag cp36:

ERROR: Appending polylearn.tests configuration to polylearn

Ignoring attempt to set 'name' (from 'polylearn' to 'polylearn.tests')

Appending polylearn configuration to

Ignoring attempt to set 'name' (from '' to 'polylearn')

running bdist_wheel

running build

running config_cc

unifing config_cc, config, build_clib, build_ext, build commands --compiler options

running config_fc

unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options

running build_src

build_src

building extension "polylearn.loss_fast" sources

building extension "polylearn.cd_direct_fast" sources

building extension "polylearn.cd_linear_fast" sources

building extension "polylearn.cd_lifted_fast" sources

build_src: building npy-pkg config files

running build_py

creating build

creating build\lib.win-amd64-3.6

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

copying polylearn\base.py -> build\lib.win-amd64-3.6\polylearn

copying polylearn\factorization_machine.py -> build\lib.win-amd64-3.6\polylearn

copying polylearn\kernels.py -> build\lib.win-amd64-3.6\polylearn

copying polylearn\loss.py -> build\lib.win-amd64-3.6\polylearn

copying polylearn\polynomial_network.py -> build\lib.win-amd64-3.6\polylearn

copying polylearn\setup.py -> build\lib.win-amd64-3.6\polylearn

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

creating build\lib.win-amd64-3.6\polylearn\tests

copying polylearn\tests\test_cd_linear.py -> build\lib.win-amd64-3.6\polylearn\tests

copying polylearn\tests\test_common.py -> build\lib.win-amd64-3.6\polylearn\tests

copying polylearn\tests\test_factorization_machine.py -> build\lib.win-amd64-3.6\polylearn\tests

copying polylearn\tests\test_kernels.py -> build\lib.win-amd64-3.6\polylearn\tests

copying polylearn\tests\test_polynomial_network.py -> build\lib.win-amd64-3.6\polylearn\tests

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

running build_ext

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

customize MSVCCompiler

customize MSVCCompiler using build_ext

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

customize MSVCCompiler

Missing compiler_cxx fix for MSVCCompiler

customize MSVCCompiler using build_ext

building 'polylearn.loss_fast' extension

compiling C sources

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

cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\lib\site-packages\numpy\core\include -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\lib\site-packages\numpy\core\include -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\include -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\include /EHsc /Tppolylearn\loss_fast.cpp /Fobuild\temp.win-amd64-3.6\Release\polylearn\loss_fast.obj /Zm1000

Warning: Assuming default configuration (polylearn\tests/{setup_tests,setup}.py was not found)error: Command "cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\lib\site-packages\numpy\core\include -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\lib\site-packages\numpy\core\include -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\include -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\include /EHsc /Tppolylearn\loss_fast.cpp /Fobuild\temp.win-amd64-3.6\Release\polylearn\loss_fast.obj /Zm1000" failed with exit status 127

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

ERROR: Failed building wheel for polylearn

Running setup.py clean for polylearn

Failed to build polylearn

Installing collected packages: polylearn

Running setup.py install for polylearn ... error

    ERROR: Complete output from command 'C:\Users\A123456\AppData\Local\Continuum\anaconda3\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\A123456\\AppData\\Local\\Temp\\pip-req-build-w040ohe6\\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\A123456\AppData\Local\Temp\pip-record-rmbdph40\install-record.txt' --single-version-externally-managed --compile:

    ERROR: Appending polylearn.tests configuration to polylearn

    Ignoring attempt to set 'name' (from 'polylearn' to 'polylearn.tests')

    Appending polylearn configuration to

    Ignoring attempt to set 'name' (from '' to 'polylearn')

    running install

    running build

    running config_cc

    unifing config_cc, config, build_clib, build_ext, build commands --compiler options

    running config_fc

    unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options

    running build_src

    build_src

    building extension "polylearn.loss_fast" sources

    building extension "polylearn.cd_direct_fast" sources

    building extension "polylearn.cd_linear_fast" sources

    building extension "polylearn.cd_lifted_fast" sources

    build_src: building npy-pkg config files

    running build_py

    creating build

    creating build\lib.win-amd64-3.6

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

    copying polylearn\base.py -> build\lib.win-amd64-3.6\polylearn

    copying polylearn\factorization_machine.py -> build\lib.win-amd64-3.6\polylearn

    copying polylearn\kernels.py -> build\lib.win-amd64-3.6\polylearn

    copying polylearn\loss.py -> build\lib.win-amd64-3.6\polylearn

    copying polylearn\polynomial_network.py -> build\lib.win-amd64-3.6\polylearn

    copying polylearn\setup.py -> build\lib.win-amd64-3.6\polylearn

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

    creating build\lib.win-amd64-3.6\polylearn\tests

    copying polylearn\tests\test_cd_linear.py -> build\lib.win-amd64-3.6\polylearn\tests

    copying polylearn\tests\test_common.py -> build\lib.win-amd64-3.6\polylearn\tests

    copying polylearn\tests\test_factorization_machine.py -> build\lib.win-amd64-3.6\polylearn\tests

    copying polylearn\tests\test_kernels.py -> build\lib.win-amd64-3.6\polylearn\tests

   copying polylearn\tests\test_polynomial_network.py -> build\lib.win-amd64-3.6\polylearn\tests

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

    running build_ext

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

    customize MSVCCompiler

    customize MSVCCompiler using build_ext

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

    customize MSVCCompiler

    Missing compiler_cxx fix for MSVCCompiler

    customize MSVCCompiler using build_ext

    building 'polylearn.loss_fast' extension

    compiling C sources

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

    cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\lib\site-packages\numpy\core\include -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\lib\site-packages\numpy\core\include -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\include -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\include /EHsc /Tppolylearn\loss_fast.cpp /Fobuild\temp.win-amd64-3.6\Release\polylearn\loss_fast.obj /Zm1000

    Warning: Assuming default configuration (polylearn\tests/{setup_tests,setup}.py was not found)error: Command "cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\lib\site-packages\numpy\core\include -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\lib\site-packages\numpy\core\include -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\include -IC:\Users\A123456\AppData\Local\Continuum\anaconda3\include /EHsc /Tppolylearn\loss_fast.cpp /Fobuild\temp.win-amd64-3.6\Release\polylearn\loss_fast.obj /Zm1000" failed with exit status 127

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

ERROR: Command "'C:\Users\A123456\AppData\Local\Continuum\anaconda3\python.exe' -u -c 'import setuptools, tokenize;file='"'"'C:\Users\A123456\AppData\Local\Temp\pip-req-build-w040ohe6\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\A123456\AppData\Local\Temp\pip-record-rmbdph40\install-record.txt' --single-version-externally-managed --compile" failed with error code 1 in C:\Users\A123456\AppData\Local\Temp\pip-req-build-w040ohe6\

D:\Python instalations\polylearn-master\polylearn-master>

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/scikit-learn-contrib/polylearn/issues/13?email_source=notifications&email_token=AAB3AUI4O5B23XKICKLK4GDQDMWC3A5CNFSM4EMXZSQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3ZTWJA#issuecomment-519256868, or mute the thread https://github.com/notifications/unsubscribe-auth/AAB3AUOEW7OQLV5QE7HURWLQDMWC3ANCNFSM4EMXZSQQ .