0
点赞
收藏
分享

微信扫一扫

pip install sklearn报错(一大堆红字,)


这里写自定义目录标题

  • ​​项目场景:​​
  • ​​解决方案:​​

项目场景:

pip install sklearn
出现一大堆红色提示
pip install sklearn Complete output from command d:\programs\python\python.exe -m pip install --ignore-installed --no-user --prefix C:\Users\YMXD\AppData\Local\Temp\pip-build-env-9v8udln2 --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple – setuptools wheel Cython>=0.28.5 “numpy1.13.3; python_version’3.6’ and platform_system!=‘AIX’ and platform_python_implementation == ‘CPython’” “numpy1.14.0; python_version’3.6’ and platform_system!=‘AIX’ and platform_python_implementation != ‘CPython’” “numpy1.14.5; python_version’3.7’ and platform_system!=‘AIX’” “numpy1.17.3; python_version>=‘3.8’ and platform_system!=‘AIX’" "numpy1.16.0; python_version==‘3.6’ and platform_system==‘AIX’” “numpy1.16.0; python_version’3.7’ and platform_system==‘AIX’” “numpy1.17.3; python_version>=‘3.8’ and platform_system’AIX’” scipy>=0.19.1:

解决方案:

看一下sklearn官网的描述。

Warning Scikit-learn 0.20 was the last version to support Python 2.7 and Python 3.4. Scikit-learn 0.21 supported Python 3.5-3.7. Scikit-learn 0.22 supported Python 3.5-3.8. Scikit-learn now requires Python 3.6 or newer.

sklearn不支持Python3.9

所以说并不能下载最新版本的Python,不是越新越好的,我觉得至少要回退到两个版本,所以我又下载了Python3.9的安装包,卸载了Python3.9,重新安装了Python3.7。


举报

相关推荐

pip install dlib报错

0 条评论