Hi, I follow the instructions here: to compile Scikit-learn for development https://github.com/scikit-learn/scikit-learn/issues/5709 1) Download from Git into a repository scikit_learn 2) Add the path to Python Path 3) In IPython !!python D:\_devs\Python01\scikit_learn\sklearn\setup.py build_ext --inplace and I got this message: |Assuming default configuration (scikit_learn\\sklearn\\svm\\tests/{setup_tests,setup}.py was not found)D:\\\\_devs\\\\Python01\\\\scikit_learn\\\\sklearn\\\\setup.py:71: UserWarning: ', ' Blas (http://www.netlib.org/blas/) libraries not found.', ' Directories to search for the libraries can be specified in the', ' numpy/distutils/site.cfg file (section [blas]) or by setting', ' the BLAS environment variable.', ' warnings.warn(BlasNotFoundError.__doc__)', 'Warning: Assuming default configuration (scikit_learn\\sklearn\\linear_model\\tests/{setup_tests,setup}.py was not found)Warning: Assuming default configuration (scikit_learn\\sklearn\\utils\\sparsetools\\tests/{setup_tests,setup}.py was not found)Warning: Assuming default configuration (scikit_learn\\sklearn\\utils\\tests/{setup_tests,setup}.py was not found)Warning: Assuming default configuration (scikit_learn\\sklearn\\tests/{setup_tests,setup}.py was not found)gcc.exe: error: _check_build.c: No such file or directory', 'gcc.exe: fatal error: no input files', 'compilation terminated.', 'error: Command "gcc -m64 -g -DNDEBUG -DMS_WIN64 -O2 -Wall -Wstrict-prototypes -D__MSVCRT_VERSION__=0x0900 -ID:\\_devs\\Python01\\WinPython-64-2710\\python-2.7.10.amd64\\lib\\site-packages\\numpy\\core\\include -ID:\\_devs\\Python01\\WinPython-64-2710\\python-2.7.10.amd64\\lib\\site-packages\\numpy\\core\\include -ID:\\_devs\\Python01\\WinPython-64-2710\\python-2.7.10.amd64\\include -ID:\\_devs\\Python01\\WinPython-64-2710\\python-2.7.10.amd64\\PC -c _check_build.c -o build\\temp.win-amd64-2.7\\Release\\_check_build.o" failed with exit status 1']| Environnment WinPython 2.7 64bits Windows-7-6.1.7601-SP1 ('Python', '2.7.10 (default, May 23 2015, 09:44:00) [MSC v.1500 64 bit (AMD64)]') ('NumPy', '1.9.2') ('SciPy', '0.16.0' ) Just wondering if possible to get a place where we can compile without spending hours and days on the web to find the issues ? Thanks Brook
The error message mentions gcc. Have you installed some mingw version? As of now our windows build is only properly tested with the Visual Studio C++ compiler from appveyor: https://ci.appveyor.com/project/sklearn-ci/scikit-learn I have not tested the build with mingwpy in a while (I am not a windows user my-self). The file not found error makes me think that you might need to cd into the scikit-learn source folder: !!cd D:\_devs\Python01\scikit_learn\sklearn !!python setup.py build_ext --inplace -- Olivier
You could also use ! pip install D:\_devs\Python01\scikit_learn\sklearn or indeed ! pip install git+https://github.com/scikit-learn/scikit-learn/ if you don't actually want to use the directory with the source code in it. On 22 August 2016 at 19:43, Olivier Grisel <olivier.grisel@ensta.org> wrote:
The error message mentions gcc. Have you installed some mingw version?
As of now our windows build is only properly tested with the Visual Studio C++ compiler from appveyor:
https://ci.appveyor.com/project/sklearn-ci/scikit-learn
I have not tested the build with mingwpy in a while (I am not a windows user my-self).
The file not found error makes me think that you might need to cd into the scikit-learn source folder:
!!cd D:\_devs\Python01\scikit_learn\sklearn !!python setup.py build_ext --inplace
-- Olivier _______________________________________________ scikit-learn mailing list scikit-learn@python.org https://mail.python.org/mailman/listinfo/scikit-learn
participants (3)
-
Joel Nothman -
KevNo -
Olivier Grisel