我正在尝试使用以下命令在 Windows 10 上的 Python 3.8 上安装 sklearn (scikit-learn):
pip install sklearn
我也用过:
pip3 install sklearn
pip install scikit-learn
pip install -U scikit-learn
也:
pip install --only-binary :all: sklearn
我也尝试过升级 pip/setuptools。
有很长的错误块;其中,似乎相关的部分提到了 Fortran:
customize GnuFCompiler Could not locate executable g77 Could not locate executable f77 customize IntelVisualFCompiler Could not locate executable ifort Could not locate executable ifl customize AbsoftFCompiler Could not locate executable f90 customize CompaqVisualFCompiler Could not locate executable DF customize IntelItaniumVisualFCompiler Could not locate executable efl customize Gnu95FCompiler Could not locate executable gfortran Could not locate executable f95 customize G95FCompiler Could not locate executable g95 customize IntelEM64VisualFCompiler customize IntelEM64TFCompiler Could not locate executable efort Could not locate executable efc customize PGroupFlangCompiler Could not locate executable flang don't know how to compile Fortran code on platform 'nt' NOT AVAILABLE
错误的另一部分:
numpy.distutils 中没有名为“numpy.distutils._msvccompiler”的模块;
我只是想知道这是否是因为 3.8 的新颖性?有没有人知道的解决方法?
它似乎围绕着 NumPy。我已经卸载了该软件包并重新安装了它。