I am using Anaconda Python. If I just enter python
environment the astropy
works okay.
But if I enter the IPython
environment (NOT THE IPYTHON NOTEBOOK where it obviously does not work), this astropy does not load.
On typing from astropy.io import fits
, the error is :
DLL load failed: %1 is not a valid Win32 application.
On entering import astropy
, it says :
Cannot import name config
So, what is the problem? I really do not have any idea.
EDIT:
Ok. Now it works in ipython
and notebook
apart from just python
after I start worknig from the scripts
folder only.
But I have to do that every time ! Else, it does not work. :(
Error shown is:
cannot import name config