python - Error message when importing astropy in Windows 8 -
i have windows 8 (sadly lucky enough laptop support badly linux, tried several distributions..). have python 2.7 installed, , can import scipy , numpy. i've installed astropy executable file site, when try import error message down bellow. can me setting properly?
enthought canopy python 2.7.3 | 64-bit | (default, jun 14 2013, 18:19:25) [msc v .1500 64 bit (amd64)] on win32 type "help", "copyright", "credits" or "license" more information.
import astropy error in sys.excepthook: traceback (most recent call last): file "c:\users\omer\appdata\local\enthought\canopy\user\lib\site-packages\astr opy\logger.py", line 222, in _excepthook self.error(message) file "c:\users\omer\appdata\local\enthought\canopy\app\appdata\canopy-1.0.3.12 62.win-x86_64\lib\logging__init__.py", line 1166, in error self._log(error, msg, args, **kwargs) file "c:\users\omer\appdata\local\enthought\canopy\app\appdata\canopy-1.0.3.12 62.win-x86_64\lib\logging__init__.py", line 1258, in _log self.handle(record) file "c:\users\omer\appdata\local\enthought\canopy\app\appdata\canopy-1.0.3.12 62.win-x86_64\lib\logging__init__.py", line 1268, in handle self.callhandlers(record) file "c:\users\omer\appdata\local\enthought\canopy\app\appdata\canopy-1.0.3.12 62.win-x86_64\lib\logging__init__.py", line 1308, in callhandlers hdlr.handle(record) file "c:\users\omer\appdata\local\enthought\canopy\app\appdata\canopy-1.0.3.12 62.win-x86_64\lib\logging__init__.py", line 748, in handle self.emit(record) file "c:\users\omer\appdata\local\enthought\canopy\user\lib\site-packages\astr opy\logger.py", line 339, in _stream_formatter color_print(record.levelname, 'red', end='') file "c:\users\omer\appdata\local\enthought\canopy\user\lib\site-packages\astr opy\utils\console.py", line 230, in color_print if isatty(file) , use_color(): file "c:\users\omer\appdata\local\enthought\canopy\user\lib\site-packages\astr opy\config\configuration.py", line 336, in call sec = get_config(self.module) file "c:\users\omer\appdata\local\enthought\canopy\user\lib\site-packages\astr opy\config\configuration.py", line 402, in get_config ..utils import find_current_module systemerror: parent module 'astropy' not loaded, cannot perform relative import
original exception was: traceback (most recent call last): file "", line 1, in file "c:\users\omer\appdata\local\enthought\canopy\user\lib\site-packages\astr opy__init__.py", line 136, in .utils import _compiler importerror: dll load failed: %1 not valid win32 application.
>
it looks using enthought canopy? try installing anaconda python distribution instead (https://store.continuum.io/cshop/anaconda/) includes astropy default.
Comments
Post a Comment