Jupyter Notebook pandas error (OSError: [WinError 193] %1 is not a valid Win32 application)


Hi all,

I am currently working on the yelp regression project in the machine learning course. The project requires me to open a Jupyter notebook and import pandas as py. I use the Anaconda navigator to open Jupyter notebook. I get the following (OSError: [WinError 193] %1 is not a valid Win32 application) error when I try to import pandas for my code:

OSError Traceback (most recent call last)
<ipython-input-2-ed70324e10b6> in <module>
----> 1 import pandas as pd
3 businesses = pd.read_json('yelp_business.json', lines = True)
4 reviews = pd.read_json('yelp_review.json', lines = True)
5 users = pd.read_json('yelp_user.json', lines = True)

~\AppData\Roaming\Python\Python37\site-packages\pandas\__init__.py in <module>
9 for dependency in hard_dependencies:
10 try:
---> 11 __import__(dependency)
12 except ImportError as e:
13 missing_dependencies.append("{0}: {1}".format(dependency, str(e)))

~\AppData\Roaming\Python\Python37\site-packages\numpy\__init__.py in <module>
139 # Allow distributors to run custom init code
--> 140 from . import _distributor_init
142 from . import core

~\AppData\Roaming\Python\Python37\site-packages\numpy\_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:

~\Anaconda3\lib\ctypes\__init__.py in __init__(self, name, mode, handle, use_errno, use_last_error)
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

Thank you

Your are using the windows 32bit OS which cannot handle that much memory retention…you need to install a windows 64bit OS in order to run Jupyter notebook and import pandas as py.

I am using 64bit os window but facing same problem. can you help me?