在Windows 8 64位上运行iPython

时间:2015-07-19 19:56:56

标签: python windows-8 ipython

我正在尝试在Windows 8上运行iPython。我安装了python 3.4.0(32位版本)并通过命令成功安装了iPython

easy_install ipython[all]

问题是当我尝试运行它时

ipython notebook

我收到以下错误:

Traceback (most recent call last):
File "C:\Python34\Scripts\ipython-script.py", line 9, in <module>
load_entry_point('ipython==3.1.0', 'console_scripts', 'ipython')()
File "C:\Python34\lib\site-packages\IPython\__init__.py", line 120, in start_ipython return launch_new_instance(argv=argv, **kwargs)
File "C:\Python34\lib\site-packages\IPython\config\application.py", line 573, in launch_instance app.initialize(argv)
File "<string>", line 2, in initialize
File "C:\Python34\lib\site-packages\IPython\config\application.py", line 75, in catch_config_error return method(app, *args, **kwargs)
File "C:\Python34\lib\site-packages\IPython\terminal\ipapp.py", line 321, in initialize super(TerminalIPythonApp, self).initialize(argv)
File "<string>", line 2, in initialize
File "C:\Python34\lib\site-packages\IPython\config\application.py", line 75, in catch_config_error return method(app, *args, **kwargs)
File "C:\Python34\lib\site-packages\IPython\core\application.py", line 369, in initialize self.parse_command_line(argv)
File "C:\Python34\lib\site-packages\IPython\terminal\ipapp.py", line 316, in parse_command_line return super(TerminalIPythonApp, self).parse_command_line(argv)
File "<string>", line 2, in parse_command_line
File "C:\Python34\lib\site-packages\IPython\config\application.py", line 75, in catch_config_error return method(app, *args, **kwargs)
File "C:\Python34\lib\site-packages\IPython\config\application.py", line 471, in parse_command_line return self.initialize_subcommand(subc, subargv)
File "<string>", line 2, in initialize_subcommand
File "C:\Python34\lib\site-packages\IPython\config\application.py", line 75, in catch_config_error    return method(app, *args, **kwargs)
File "C:\Python34\lib\site-packages\IPython\config\application.py", line 402, in initialize_subcommand subapp = import_item(subapp)
File "C:\Python34\lib\site-packages\IPython\utils\importstring.py", line 42, in import_item module = __import__(package, fromlist=[obj])
File "C:\Python34\lib\site-packages\IPython\html\notebookapp.py", line 30, in <module> check_for_zmq('13', 'IPython.html')
File "C:\Python34\lib\site-packages\IPython\utils\zmqrelated.py", line 10, in check_for_zmq import zmq
File "C:\Python34\lib\site-packages\zmq\__init__.py", line 25, in <module> _libsodium = ctypes.cdll.LoadLibrary(bundled_sodium[0])
File "C:\Python34\lib\ctypes\__init__.py", line 429, in LoadLibrary     return self._dlltype(name)
File "C:\Python34\lib\ctypes\__init__.py", line 351, in __init__     self._handle = _dlopen(self._name, mode) 
OSError: [WinError 193] %1 is not a valid Win32 application

可能是&#39;名称&#39;某些应用程序的错误指定。你能帮我理解如何解决它吗?

谢谢!

1 个答案:

答案 0 :(得分:1)

Easy_Install是魔鬼(恕我直言)。您可能想要使用Continuum Anaconda。 Continuum解决方案只是简单地“正常工作”,有助于避免以后使用Easy_Install时遇到的麻烦。