Failure to install on Windows 10 or via WSL
lithander opened this issue · 1 comments
- Chess Tuning Tools version: current master
- Python version: 3.8, 3.9, 3.10
- Operating System: Windows 10
Description
I'm just trying to install the chess-tuning-tools via 'pip install chess-tuning-tools'
I have tried doing so in Miniconda (different versions) my local pyhton install (Python 3.10.8) via 'venv' and the Windows-Subsystem-Linux (WSL) Ubuntu
When the dependencies are installed and it fails here:
Downloading scikit-learn-0.23.2.tar.gz (7.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.2/7.2 MB 7.2 MB/s eta 0:00:00
Installing build dependencies ... error
error: subprocess-exited-with-error
The subprocess that failed is this:
Running setup.py install for numpy did not run successfully.
error: Command "x86_64-linux-gnu-gcc -Wno-unused-result [...] -MF build/temp.linux-x86_64-3.10/build/src.linux-x86_64-3.1/numpy/core/src/multiarray/scalartypes.o.d" failed with exit status 1
I have the same problem on Windows! Just using MSBuild tools instead of 'gcc'
Installing an up-to-date version of numpy or scikit works but of course that's not what the chess-tuning-tool wants so it will always try to install the dependencies in the specified version (scikit-learn-0.23.2) and fail again in the Install-build-dependencies step.
Because I'm on Windows I tried using Miniconda again and this time I noticed that after creating the environment typing 'activate myenv' as described in the Readme doesn't actually activate the environment. Instead the correct command is 'conda activate myenv'.