导入错误:没有名为 numpy 的模块 [英] Import Error: No module named numpy

查看:87
本文介绍了导入错误:没有名为 numpy 的模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个与这个问题非常相似的问题,但仍落后一步.我的 Windows 7(抱歉)64 位系统上只安装了一个版本的 Python 3.

I have a very similar question to this question, but still one step behind. I have only one version of Python 3 installed on my Windows 7 (sorry) 64-bit system.

我按照这个安装了 numpy link - 如问题中所建议.安装进行得很顺利,但是当我执行

I installed numpy following this link - as suggested in the question. The installation went fine but when I execute

import numpy

我收到以下错误:

导入错误:没有名为 numpy 的模块

Import error: No module named numpy

我知道这可能是一个非常基本的问题,但我仍在学习.

I know this is probably a super basic question, but I'm still learning.

谢谢

推荐答案

在 NumPy 1.5.0 版中添加了对 Python 3 的支持,因此首先,您必须下载/安装较新版本的 NumPy.

Support for Python 3 was added in NumPy version 1.5.0, so to begin with, you must download/install a newer version of NumPy.

或者简单地使用pip:

python3 -m pip install numpy

这篇关于导入错误:没有名为 numpy 的模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆