python命令窗口中怎么导入numpy,python - NumPy的失败,在Windows命令窗口中加载。 Python版本3.7.1 - SO中文参考 - www.soinside.com...

最近,我与Python 3.7.1安装Anaconda3在Windows 10,我也使用Python的发射,因为我也有Python 2.7版在我的电脑上安装。 Python的启动似乎正常工作。

当使用我的Spyder的IDE与蟒蛇,numpy的进口发运正常。然而,从导入时在Windows命令窗口中,我得到以下回溯“上马”的Python 3的版本:

c:\>py

Python 2.7.10 (default, May 23 2015, 09:40:32) [MSC v.1500 32 bit (Intel)] on win32

Type "help", "copyright", "credits" or "license" for more information.

>>> import numpy

>>> numpy.__file__

'C:\\Python27\\lib\\site-packages\\numpy\\__init__.pyc'

>>>

c:\>py -3 --version

Python 3.7.1

c:\>py -3

Python 3.7.1 (default, Dec 10 2018, 22:54:23) [MSC v.1915 64 bit (AMD64)] :: Anaconda, Inc. on win32

Type "help", "copyright", "credits" or "license" for more information.

>>> import numpy

Traceback (most recent call last):

File "C:\ProgramData\Anaconda3\lib\site-packages\numpy\core\__init__.py", line 16, in

from . import multiarray

ImportError: DLL load failed: The specified module could not be found.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "", line 1, in

File "C:\ProgramData\Anaconda3\lib\site-packages\numpy\__init__.py", line 142, in

from . import add_newdocs

File "C:\ProgramData\Anaconda3\lib\site-packages\numpy\add_newdocs.py", line 13, in

from numpy.lib import add_newdoc

File "C:\ProgramData\Anaconda3\lib\site-packages\numpy\lib\__init__.py", line 8, in

from .type_check import *

File "C:\ProgramData\Anaconda3\lib\site-packages\numpy\lib\type_check.py", line 11, in

import numpy.core.numeric as _nx

File "C:\ProgramData\Anaconda3\lib\site-packages\numpy\core\__init__.py", line 26, in

raise ImportError(msg)

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: DLL load failed: The specified module could not be found.

有任何想法吗?

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值