/中文/
/中文/
/中文/
/中文/
/中文/
/中文/
/中文/
/中文/
/中文/
/中文/
IPython官网最新版是一款非常实用的python安装包,它主要为了方便开发者在windows下进行phthon环境的配置,拥有phthon代码运行、调试、测试、Qt界面显示、代码高亮等非常实用的功能,有需要的用户快来下载体验吧。
IPython的开发者吸收了标准解释器的基本概念,在此基础上进行了大量的改进,创造出一个令人惊奇的工具。在它的主页上是这么说的:“这是一个增强的交互式Python shell。”具有tab补全,对象自省,强大的历史机制,内嵌的源代码编辑,集成Python调试器,%run机制,宏,创建多个环境以及调用系统shell的能力。
任何Linux发行版对编程者都十分友好:
Ubuntu为例: sudo apt-get install ipython
windows环境:
1、下载ez_setup.py ,右击左边链接,另存为,使用python ez_setup.py运行,或直接双击。
2、步骤1成功后,cmd下输入命令easy_install -h可以测试,正常反应说明已经可以使用easy_install了。
3、cmd下输入easy_install pip安装pip,这是因为pip正是easy_install的下一代,比easy_install好用。
4、步骤3成功后,pip install ipython。
5、如果步骤4不行,退一步,使用easy_install ipython安装。
1. 无法启动ipython,报如下错
Traceback (most recent call last):
File "C:\Python27\Scripts\ipython-script.py", line 5, in <module>
from pkg_resources import load_entry_point
File "C:\Python27\lib\site-packages\distribute-0.6.35-py2.7.egg\pkg_resources.
py", line 2809, in <module>
parse_requirements(__requires__), Environment()
File "C:\Python27\lib\site-packages\distribute-0.6.35-py2.7.egg\pkg_resources.
py", line 594, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: pyreadline>=1.7.1
这是安装第四步,没有使用管理员权限执行;以及没有先安装pyreadline的缘故。
2. 执行ipython qtconsole时候报错
Error in sys.excepthook:
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\IPython\frontend\qt\console\qtconsoleapp.p
y", line 51, in gui_excepthook
old_excepthook(exctype, value, tb)
TypeError: 'NoneType' object is not callable
Original exception was:
Traceback (most recent call last):
File "C:\Python27\Scripts\ipython-script.py", line 9, in <module>
load_entry_point('ipython==0.13.1', 'console_scripts', 'ipython')()
File "C:\Python27\lib\site-packages\IPython\frontend\terminal\ipapp.py", line
388, in launch_new_instance
app.initialize()
File "<string>", line 2, in initialize
File "C:\Python27\lib\site-packages\IPython\config\application.py", line 84, i
n catch_config_error
return method(app, *args, **kwargs)
File "C:\Python27\lib\site-packages\IPython\frontend\terminal\ipapp.py", line
313, in initialize
super(TerminalIPythonApp, self).initialize(argv)
File "<string>", line 2, in initialize
File "C:\Python27\lib\site-packages\IPython\config\application.py", line 84, i
n catch_config_error
return method(app, *args, **kwargs)
File "C:\Python27\lib\site-packages\IPython\core\application.py", line 325, in
initialize
self.parse_command_line(argv)
File "C:\Python27\lib\site-packages\IPython\frontend\terminal\ipapp.py", line
308, in parse_command_line
return super(TerminalIPythonApp, self).parse_command_line(argv)
File "<string>", line 2, in parse_command_line
File "C:\Python27\lib\site-packages\IPython\config\application.py", line 84, i
n catch_config_error
return method(app, *args, **kwargs)
File "C:\Python27\lib\site-packages\IPython\config\application.py", line 420,
in parse_command_line
return self.initialize_subcommand(subc, subargv)
File "<string>", line 2, in initialize_subcommand
File "C:\Python27\lib\site-packages\IPython\config\application.py", line 84, i
n catch_config_error
return method(app, *args, **kwargs)
File "C:\Python27\lib\site-packages\IPython\config\application.py", line 352,
in initialize_subcommand
subapp = import_item(subapp)
File "C:\Python27\lib\site-packages\IPython\utils\importstring.py", line 40, i
n import_item
module = __import__(package,fromlist=[obj])
File "C:\Python27\lib\site-packages\IPython\frontend\qt\console\qtconsoleapp.p
y", line 56, in <module>
from IPython.external.qt import QtCore, QtGui
File "C:\Python27\lib\site-packages\IPython\external\qt.py", line 43, in <modu
le>
raise ImportError('Cannot import PySide >= 1.0.3 or PyQt4 >= 4.7')
ImportError: Cannot import PySide >= 1.0.3 or PyQt4 >= 4.7
修复了一些bug
优化了用户体验效果
优化了操作界面