Trouble installing sklearn in command prompt in python, getting ERROR: Command errored out with exit status 1:

Trouble installing sklearn in command prompt in python, getting ERROR: Command errored out with exit status 1:

我正在尝试在我的命令提示符下安装 sklearn,但我一直收到同样的错误。

 ERROR: Command errored out with exit status 1:
   command: 'c:\users\paula\appdata\local\programs\python\python39\python.exe' 'c:\users\paula\appdata\local\programs\python\python39\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\paula\AppData\Local\Temp\pip-build-env-0nihy7su\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel 'Cython>=0.28.5' 'numpy==1.13.3; python_version=='"'"'3.6'"'"' and platform_system!='"'"'AIX'"'"' and platform_python_implementation == '"'"'CPython'"'"'' 'numpy==1.14.0; python_version=='"'"'3.6'"'"' and platform_system!='"'"'AIX'"'"' and platform_python_implementation != '"'"'CPython'"'"'' 'numpy==1.14.5; python_version=='"'"'3.7'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.17.3; python_version>='"'"'3.8'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.16.0; python_version=='"'"'3.6'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.16.0; python_version=='"'"'3.7'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.17.3; python_version>='"'"'3.8'"'"' and platform_system=='"'"'AIX'"'"'' 'scipy>=0.19.1'
       cwd: None

我试过 pip install sklearnpip install -U sklearnscikit learn 一样,但它们都给出了相同的错误。任何建议将不胜感激。 我在 windows.

上使用 Python 3.9.1

3.9.1 是截至目前 -2020 年 12 月- 的最新版本,您应该知道某些库可能不支持它。可以在以下 github 问题中找到更多信息:

Failed To Install scikit-learn with Python 3.9 on Windows

您可以尝试使用命令安装它,

pip install --pre -U scikit-learn