I tried reinstalling anaconda navigator but still facing the same error. I have 64-bit OS. Couldn’t quite understand other answers on the same error on exactly what to do here.
The error is coming while importing any library.
OSError Traceback (most recent call last)
<ipython-input-2-7dd3504c366f> in <module>
----> 1 import pandas as pd
~AppDataRoamingPythonPython38site-packagespandas__init__.py in <module>
9 for dependency in hard_dependencies:
10 try:
---> 11 __import__(dependency)
12 except ImportError as e:
13 missing_dependencies.append(f"{dependency}: {e}")
~AppDataRoamingPythonPython38site-packagesnumpy__init__.py in <module>
136
137 # Allow distributors to run custom init code
--> 138 from . import _distributor_init
139
140 from . import core
~AppDataRoamingPythonPython38site-packagesnumpy_distributor_init.py in <module>
24 # NOTE: would it change behavior to load ALL
25 # DLLs at this path vs. the name restriction?
---> 26 WinDLL(os.path.abspath(filename))
27 DLL_filenames.append(filename)
28 if len(DLL_filenames) > 1:
~anaconda3libctypes__init__.py in __init__(self, name, mode, handle, use_errno, use_last_error, winmode)
371
372 if handle is None:
--> 373 self._handle = _dlopen(self._name, mode)
374 else:
375 self._handle = handle
OSError: [WinError 193] %1 is not a valid Win32 application
Source: Python-3x Questions
One Reply to “How to fix Jupyter Notebook import module (OSError: [WinError 193] %1 is not a valid Win32 application)”
had the same issue. for me it turned out to be a problem with my path.
have a look at this https://www.youtube.com/watch?v=OdIHeg4jj2c and check if you have different versions of python and where your dependencies are installed.