我正在尝试使用以下命令在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。我已经卸载了该软件包,然后重新安装。