首页   注册   登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python 学习手册
Python Cookbook
Python 基础教程
Python Sites
PyPI - Python Package Index
http://www.simple-is-better.com/
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
V2EX  ›  Python

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

  •  
  •   itfanr · 2013-08-11 15:34:30 +08:00 · 7140 次点击
    这是一个创建于 2021 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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
    10 回复  |  直到 2016-01-01 12:09:48 +08:00
        1
    timonwong   2013-08-11 15:43:48 +08:00   ♥ 1
    Windows下就不要用pypi之类的装了,装不了的。。。
    你可以用Enthought或Anaconda的发行版,已经包含了ipython。

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

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

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


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

    windows下,如何改变Anaconda的python版本.
        7
    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
        8
    josephshen   2013-08-13 09:01:05 +08:00
    完全不用这样。
    就是先安装python,再通过ez_setup安装easy_install,easy_install安装pip。
    你就有了pip和easy_install这两个python的包管理程序。
    最后pip install ipython,就可以。
        9
    itfanr   2013-08-13 13:29:47 +08:00
    @josephshen 一语道破啊 谢谢
        10
    72vc48   2016-01-01 12:09:48 +08:00
    用 pip 安装 ipython 很方便的,但是注意别开着 fiddler 这些抓包工具,如果开着,有时会遇到不同的结果。
    关于   ·   FAQ   ·   API   ·   我们的愿景   ·   广告投放   ·   感谢   ·   实用小工具   ·   2283 人在线   最高记录 4385   ·  
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.3 · 16ms · UTC 13:12 · PVG 21:12 · LAX 05:12 · JFK 08:12
    ♥ Do have faith in what you're doing.
    沪ICP备16043287号-1