Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/308.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 安装scikit学习,numpy导入错误_Python_Numpy_Pip_Scikit Learn - Fatal编程技术网

Python 安装scikit学习,numpy导入错误

Python 安装scikit学习,numpy导入错误,python,numpy,pip,scikit-learn,Python,Numpy,Pip,Scikit Learn,我正在尝试测试scikit学习库,但没有安装它 更多细节:我安装了numpy、scipy、matplotlib,我可以很好地使用它们。但是,当我使用pip(pip安装-U scikit learn)时,我会遇到以下错误: Partial import of sklearn during the build process. Traceback (most recent call last): File "<string>", line 1, in <module>

我正在尝试测试scikit学习库,但没有安装它

更多细节:我安装了numpy、scipy、matplotlib,我可以很好地使用它们。但是,当我使用
pip
pip安装-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'
在构建过程中部分导入sklearn。 回溯(最近一次呼叫最后一次): 文件“”,第1行,在 文件“C:\Users\…\scikit learn\setup.py”,setup\u package() 文件“C:\Users\…\scikit learn\setup.py”,来自numpy.distutils.core导入设置 ImportError:没有名为“numpy”的模块 我找不到关于这个的任何东西

我尝试使用
python setup.py
直接安装scikit learn,但遇到了同样的问题。有什么想法吗


谢谢。

我认为numpy的安装有问题。 尝试下载并重新安装以下软件包(适用于Python 2.7):


我认为numpy的安装有问题。 尝试下载并重新安装以下软件包(适用于Python 2.7):


您有哪些操作系统?我在使用Windows Seven您运行哪一版本的Python和哪一版本的NumPy?Python 2.7.10和NumPy 1.9.2您有哪些操作系统?我在使用Windows Seven您运行哪一版本的Python和哪一版本的NumPy?Python 2.7.10和NumPy 1.9。2@HeloisaVallerio太好了:),请选择我的答案作为正确答案。Thanx@HeloisaVallerio太好了:),请选择我的答案作为正确答案。塔克斯