繁体   English   中英

在 python 的命令提示符中安装 sklearn 时出现问题,出现错误:命令错误,退出状态为 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。

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

在 Windows 上使用 Python 3.9 安装 scikit-learn 失败

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

pip install --pre -U scikit-learn

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM