我试图在命令提示符下安装sklearn,但一直收到同样的错误。
ERROR: Command errored out with exit status 1:
command: 'c:userspaulaappdatalocalprogramspythonpython39python.exe' 'c:userspaulaappdatalocalprogramspythonpython39libsite-packagespip' install --ignore-installed --no-user --prefix 'C:UserspaulaAppDataLocalTemppip-build-env-0nihy7suoverlay' --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 sklearn
、pip install -U sklearn
和scikit learn
,但它们都给出了相同的错误。如有任何建议,我们将不胜感激。我在windows上使用Python 3.9.1。
3.9.1是目前的前沿版本-2020-,您应该注意一些库可能不支持它。更多信息可以在以下github问题中找到:
无法在Windows 上安装带有Python 3.9的scikit learn
你可以试着用命令安装它
pip install --pre -U scikit-learn