安装scikit-learn,numpy导入报错
Install scikit-learn, numpy import error
我正在尝试测试 scikit-learn 库,但未能成功安装。
更多细节:我确实安装了 numpy、scipy、matplotlib,我可以很好地使用它们。但是,当我使用 pip
(pip install -U scikit-learn
) 时,出现此错误:
Partial import of sklearn during the build process.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\...\scikit-learn\setup.py", setup_package()
File "C:\Users\...\scikit-learn\setup.py", from numpy.distutils.core import setup
ImportError: No module named 'numpy'
我找不到任何相关信息。
我尝试使用 python setup.py
直接安装 scikit-learn,但遇到了同样的问题。有什么想法吗?
谢谢。
我认为numpy的安装有问题。
尝试下载并重新安装以下软件包(适用于 Python 2.7):
我正在尝试测试 scikit-learn 库,但未能成功安装。
更多细节:我确实安装了 numpy、scipy、matplotlib,我可以很好地使用它们。但是,当我使用 pip
(pip install -U scikit-learn
) 时,出现此错误:
Partial import of sklearn during the build process.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\...\scikit-learn\setup.py", setup_package()
File "C:\Users\...\scikit-learn\setup.py", from numpy.distutils.core import setup
ImportError: No module named 'numpy'
我找不到任何相关信息。
我尝试使用 python setup.py
直接安装 scikit-learn,但遇到了同样的问题。有什么想法吗?
谢谢。
我认为numpy的安装有问题。 尝试下载并重新安装以下软件包(适用于 Python 2.7):