Jupyter Notebook OSError:导入nilearn时,[WinError 193]%1不是有效的Win32应用程序

时间:2020-06-08 06:14:14

标签: python-3.x jupyter-notebook anaconda3 nilearn

这是我运行“ import nilearn”时遇到的错误

OSError                                   Traceback (most recent call last)
<ipython-input-2-ffe7acae440c> in <module>
----> 1 import nilearn

~\AppData\Roaming\Python\Python37\site-packages\nilearn\__init__.py in <module>
     65 
     66 
---> 67 _check_module_dependencies()
     68 _python_deprecation_warnings()
     69 

~\AppData\Roaming\Python\Python37\site-packages\nilearn\version.py in _check_module_dependencies(is_nilearn_installing)
    116                 module_name=module_name,
    117                 minimum_version=module_metadata['min_version'],
--> 118                 install_info=module_metadata.get('install_info'))

~\AppData\Roaming\Python\Python37\site-packages\nilearn\version.py in _import_module_with_version_check(module_name, minimum_version, install_info)
     62 
     63     try:
---> 64         module = __import__(module_name)
     65     except ImportError as exc:
     66         user_friendly_info = ('Module "{0}" could not be found. {1}').format(

~\AppData\Roaming\Python\Python37\site-packages\sklearn\__init__.py in <module>
     76     # later is linked to the OpenMP runtime to make it possible to introspect
     77     # it and importing it first would fail if the OpenMP dll cannot be found.
---> 78     from . import _distributor_init  # noqa: F401
     79     from . import __check_build  # noqa: F401
     80     from .base import clone

~\AppData\Roaming\Python\Python37\site-packages\sklearn\_distributor_init.py in <module>
     16     # Pre-load the DLL stored in sklearn/.libs by convention.
     17     dll_path = op.join(op.dirname(__file__), '.libs', 'vcomp140.dll')
---> 18     WinDLL(op.abspath(dll_path))
     19 

C:\ProgramData\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

我使用“ pip install -U --user nilearn”安装了nilearn。 该程序包适用于我的pycharm,但不适用于Jupyter Notebook

0 个答案:

没有答案
相关问题