求助windows版ipython怎么安装和使用?

2013-08-11 15:34:30 +08:00
 itfanr
Traceback (most recent call last):
File "D:\Program Files\python27\Scripts\ipython-script.py", line 9, in <module
>
load_entry_point('ipython==0.11', 'console_scripts', 'ipython')()
File "D:\Program Files\python27\lib\site-packages\IPython\frontend\terminal\ip
app.py", line 369, in launch_new_instance
app.initialize()
File "D:\Program Files\python27\lib\site-packages\IPython\frontend\terminal\ip
app.py", line 283, in initialize
self.init_shell()
File "D:\Program Files\python27\lib\site-packages\IPython\frontend\terminal\ip
app.py", line 303, in init_shell
ipython_dir=self.ipython_dir)
File "D:\Program Files\python27\lib\site-packages\IPython\config\configurable.
py", line 349, in instance
inst = cls(*args, **kwargs)
File "D:\Program Files\python27\lib\site-packages\IPython\frontend\terminal\in
teractiveshell.py", line 113, in __init__
user_global_ns=user_global_ns, custom_exceptions=custom_exceptions
File "D:\Program Files\python27\lib\site-packages\IPython\core\interactiveshel
l.py", line 427, in __init__
super(InteractiveShell, self).__init__(**kwargs)
File "D:\Program Files\python27\lib\site-packages\IPython\config\configurable.
py", line 102, in __init__
super(Configurable, self).__init__(**kwargs)
File "D:\Program Files\python27\lib\site-packages\IPython\utils\traitlets.py",
line 433, in __init__
setattr(self, key, value)
AttributeError: can't set attribute

If you suspect this is an IPython bug, please report it at:
https://github.com/ipython/ipython/issues
or send an email to the mailing list at ipython-dev@scipy.org

You can print a more detailed traceback right now with "%tb", or use "%debug"
to interactively debug it.

Extra-detailed tracebacks for bug-reporting purposes can be enabled via:
c.Application.verbose_crash=True
9039 次点击
所在节点    Python
10 条回复
timonwong
2013-08-11 15:43:48 +08:00
Windows下就不要用pypi之类的装了,装不了的。。。
你可以用Enthought或Anaconda的发行版,已经包含了ipython。

Anaconda: http://continuum.io/downloads
Enthought Canopy Free: https://www.enthought.com/downloads/
itfanr
2013-08-11 16:48:05 +08:00
@timonwong 好吧 。。。。谢谢
echo1937
2013-08-11 19:20:10 +08:00
@timonwong

请问你介绍的这2个玩意免费吗?
itfanr
2013-08-11 19:38:10 +08:00
@echo1937 应该不免费
timonwong
2013-08-11 19:46:10 +08:00
@echo1937
@itfanr
Anaconda
>>>>>>> Free for all to use: (including commercial) <<<<<<<

Enthought Canopy >>>>>>Free<<<< (当然也有收费的)
echo1937
2013-08-11 20:13:39 +08:00
@timonwong


感谢你的回答,再问个问题.

windows下,如何改变Anaconda的python版本.
timonwong
2013-08-12 16:58:45 +08:00
@echo1937
Anaconda 自带2.7.
2.6和3.3需要用conda安装(但不会替换)
方法(conda是Anaconda的包管理):
conda create -n py33 python=3.3 anaconda

参见:
http://docs.continuum.io/conda/intro.html#creating-python-3-3-or-python-2-6-environments

另外,也许你需要这个脚本:
https://github.com/ContinuumIO/conda/issues/119
josephshen
2013-08-13 09:01:05 +08:00
完全不用这样。
就是先安装python,再通过ez_setup安装easy_install,easy_install安装pip。
你就有了pip和easy_install这两个python的包管理程序。
最后pip install ipython,就可以。
itfanr
2013-08-13 13:29:47 +08:00
@josephshen 一语道破啊 谢谢
72vc48
2016-01-01 12:09:48 +08:00
用 pip 安装 ipython 很方便的,但是注意别开着 fiddler 这些抓包工具,如果开着,有时会遇到不同的结果。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/78747

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX