Closed momouang closed 4 years ago
Hi, we don't have wheels for python3.8 yet. But we will have for the 0.22 release coming very soon :) In the meantime I suggest you to switch to python 3.7
oh sure and is there any code example for me to lower my python level ?? i'm a beginner in python field
The easiest and cleanest way is to use environments. I use conda environment but you can check other kinds of environment. Here's what you can do with conda:
conda create -n myenv python=3.7 pip
conda activate myenv
pip install scikit-learn
you can look at the doc of miniconda for more detailed explanations.
Closing the issue because it's a usage question. If you have related questions, you can go to https://gitter.im/scikit-learn/scikit-learn or stackoverflow.
Actually we just released a release candidate with python 3.8 support. So you can ignore my previous comment and install scikit-learn with pip3 install --pre -U scikit-learn
.
I was trying to install sklearn in python 3.8, but it won't let me go successfully
momouangde-MacBook-Pro:~ momo$ pip3 install scikit-learn Collecting scikit-learn Using cached https://files.pythonhosted.org/packages/1e/ce/9d8c88e68af0a5b5c5d78d8d2b7bcadfd45e1d6afc863ccb9aee30765b06/scikit-learn-0.21.3.tar.gz Requirement already satisfied: numpy>=1.11.0 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from scikit-learn) (1.17.4) Requirement already satisfied: scipy>=0.17.0 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from scikit-learn) (1.3.3) Requirement already satisfied: joblib>=0.11 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from scikit-learn) (0.14.0) Installing collected packages: scikit-learn Running setup.py install for scikit-learn ... error ERROR: Command errored out with exit status 1: command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/vd/ds5bpscj0f71mkrqw8ljq8v80000gn/T/pip-install-0xl31eoy/scikit-learn/setup.py'"'"'; file='"'"'/private/var/folders/vd/ds5bpscj0f71mkrqw8ljq8v80000gn/T/pip-install-0xl31eoy/scikit-learn/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/vd/ds5bpscj0f71mkrqw8ljq8v80000gn/T/pip-record-tbh7i_4u/install-record.txt --single-version-externally-managed --compile cwd: /private/var/folders/vd/ds5bpscj0f71mkrqw8ljq8v80000gn/T/pip-install-0xl31eoy/scikit-learn/ Complete output (50 lines): Partial import of sklearn during the build process. C compiler: gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/vd/ds5bpscj0f71mkrqw8ljq8v80000gn/T/pip-install-0xl31eoy/scikit-learn/setup.py'"'"'; file='"'"'/private/var/folders/vd/ds5bpscj0f71mkrqw8ljq8v80000gn/T/pip-install-0xl31eoy/scikit-learn/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/vd/ds5bpscj0f71mkrqw8ljq8v80000gn/T/pip-record-tbh7i_4u/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
Expected Results
my result is to connect sklearn with touchdesigner and i've set the path inside TD however the module couldn't be built properly
Versions
NumPy 1.17.4 Python 3.8.0 (v3.8.0:fa919fdf25, Oct 14 2019, 10:23:27) [Clang 6.0 (clang-600.0.57)] SciPy 1.3.3
If anyone could help i would be very appreciated