The 365 Data Science team is proud to invite you to our own community forum. A very well built system to support your queries, questions and give the chance to show your knowledge and help others in their path of becoming Data Science specialists.
Anybody can ask a question
Anybody can answer
The best answers are voted up and moderated by our team

how to fix import error?

how to fix import error?

ImportError: DLL load failed: %1 is not a valid Win32 application.

doesnot work by seaborn and statsmodels?
2 Answers

365 Team

Hi Madhav,
Is your system 32bit or 64bit? 
How about your Anaconda installation? 
The two should match!
The 365 Team

my both system(device and anaconda ) are of 64 bit but also still it is not working .. seaborn ,statsmodel,sklearn are not working … plz help me .. while importing these library its says: ImportError: DLL load failed: %1 is not a valid Win32 application.

6 months

365 Team

Hi Madhav!
Thank you for providing this information. In this case, it is the modules you are trying to import that are 32-bit. Please check you have multiple environments (by executing

 conda info --list

in Anaconda Prompt/Terminal (depending on whether you are a PC/Mac user), and make sure you’ve installed the correct module versions in the environment you are using. Alternatively, and perhaps more simply, upgrade the modules in question using the following code structure:

 pip install --upgrade module_name
(i.e. e.g. pip install --upgrade seaborn)

and retry. Finally, if you are aware of a specific version you want to update a module to, please uninstall it by running

pip uninstall module_name

, and then by running

pip install module_name==version_number

Hope this helps but please feel free to get back to us should you need further assistance.

thank you so much for your support.. it worked now …once again thank you…

6 months
Ready to Learn Data Science?
50% OFF