为什么python安装不了numpy库_安装了anaconda3,自带numpy库,但不能导入,问题出在哪里?...

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46ImportError Traceback (most recent call last)

~\AppData\Roaming\Python\Python36\site-packages\numpy\core__init__.py in ()

15 try:

---> 16 from . import multiarray

17 except ImportError as exc:

ImportError: cannot import name 'multiarray'

During handling of the above exception, another exception occurred:

ImportError Traceback (most recent call last)

in ()

----> 1 import numpy

~\AppData\Roaming\Python\Python36\site-packages\numpy__init__.py in ()

140 return loader(*packages, **options)

141

--> 142 from . import add_newdocs

143 all = ['add_newdocs',

144 'ModuleDeprecationWarning',

~\AppData\Roaming\Python\Python36\site-packages\numpy\add_newdocs.py in ()

11 from future import division, absolute_import, print_function

12

---> 13 from numpy.lib import add_newdoc

14

15 ###############################################################################

~\AppData\Roaming\Python\Python36\site-packages\numpy\lib__init__.py in ()

6 from numpy.version import version as version

7

----> 8 from .type_check import *

9 from .index_tricks import *

10 from .function_base import *

~\AppData\Roaming\Python\Python36\site-packages\numpy\lib\type_check.py in ()

9 'common_type']

10

---> 11 import numpy.core.numeric as _nx

12 from numpy.core.numeric import asarray, asanyarray, array, isnan, zeros

13 from .ufunclike import isneginf, isposinf

~\AppData\Roaming\Python\Python36\site-packages\numpy\core__init__.py in ()

24 Original error was: %s

25 """ % (exc,)

---> 26 raise ImportError(msg)

27

28 for envkey in env_added:

ImportError:

Importing the multiarray numpy extension module failed. Most

likely you are trying to import a failed build of numpy.

If you're working with a numpy git repo, try git clean -xdf (removes all

files not under version control). Otherwise reinstall numpy.

Original error was: cannot import name 'multiarray'

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值