OSError:[WinError 193]%1在win10(64位)中不是有效的Win32应用程序-python3

时间:2019-04-07 00:11:16

标签: jupyter-notebook anaconda

我已经安装了Anaconda3-2019.03-Windows-x86_64并选中了复选框     (将anaconda添加到我的路径环境变量中)。 在CMD(win10-64位)中运行Python时,显示警告:

此Python解释器处于conda环境中,但尚未激活该环境。库可能无法加载。

In jupyter notebook, I run simple code:
     `Import numpy as np`

它给出错误:

OSError                                   Traceback (most recent call last)
<ipython-input-3-0aa0b027fcb6> in <module>
----> 1 import numpy as np

~\AppData\Roaming\Python\Python37\site-packages\numpy\__init__.py in <module>
    140     from . import _distributor_init
    141 
--> 142     from . import core
    143     from .core import *
    144     from . import compat

~\AppData\Roaming\Python\Python37\site-packages\numpy\core\__init__.py in <module>
     21             # NOTE: would it change behavior to load ALL
     22             # DLLs at this path vs. the name restriction?
---> 23             WinDLL(os.path.abspath(filename))
     24             DLL_filenames.append(filename)
     25     if len(DLL_filenames) > 1:

~\Anaconda3\lib\ctypes\__init__.py in __init__(self, name, mode, handle, use_errno, use_last_error)
    354 
    355         if handle is None:
--> 356             self._handle = _dlopen(self._name, mode)
    357         else:
    358             self._handle = handle

OSError: [WinError 193] %1 is not a valid Win32 application

0 个答案:

没有答案