橘子同学 发表于 2021-12-1 12:57:39

import numpy as np 显示找不到指定程序


安装成功numpy后,python里面运行好像还有问题,请问如何解决
Python 3.9.0a4 (tags/v3.9.0a4:6e02691, Feb 25 2020, 23:23:54) on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>> import numpy
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
    import numpy
File "E:\Python3.9\lib\site-packages\numpy\__init__.py", line 161, in <module>
    from . import random
File "E:\Python3.9\lib\site-packages\numpy\random\__init__.py", line 180, in <module>
    from . import _pickle
File "E:\Python3.9\lib\site-packages\numpy\random\_pickle.py", line 1, in <module>
    from .mtrand import RandomState
ImportError: DLL load failed while importing mtrand: 找不到指定的程序。
安装成功numpy后,python里面运行还有问题,请问如何解决
Python 3.9.0a4 (tags/v3.9.0a4:6e02691, Feb 25 2020, 23:23:54) on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>> import numpy
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
    import numpy
File "E:\Python3.9\lib\site-packages\numpy\__init__.py", line 161, in <module>
    from . import random
File "E:\Python3.9\lib\site-packages\numpy\random\__init__.py", line 180, in <module>
    from . import _pickle
File "E:\Python3.9\lib\site-packages\numpy\random\_pickle.py", line 1, in <module>
    from .mtrand import RandomState
ImportError: DLL load failed while importing mtrand: 找不到指定的程序。

hrpzcf 发表于 2021-12-1 13:07:34

重装Python吧,3.9.9正式版都出来了,不要再用你的Python3.9.0内部测试版了,不稳定。

C201818z 发表于 2021-12-3 16:47:34

这个是更新你的pip版本 并没有安装numpy
页: [1]
查看完整版本: import numpy as np 显示找不到指定程序