看到大家说Ipython是一个很好的内嵌交互式的解释器,所以也决定安装一下试试看,但是网上的教材都是在Python2.7做的,也有很多是Linux下的,
在网上搜索了一通,最后发现居然极其简单。
1.首先需要安装好Python3.4,直接百度搜索下载安装包安装就可以了。
2.将Python的安装目录和Scripts目录添加到系统Path里面
在CMD下输入python确认Python的安装是否成功
C:\Python34\Run>python Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:43:06) [MSC v.1600 32 bit (In tel)] on win32 Type "help", "copyright", "credits" or "license" for more information.
3.在CMD下执行命令 : pip3.4 install ipython 就开始安装了。
C:\Python34\Scripts>pip3.4 install ipython Collecting ipython Downloading ipython-5.1.0-py3-none-any.whl (747kB) 100% |################################| 749kB 255kB/s Collecting prompt-toolkit<2.0.0,>=1.0.3 (from ipython) Downloading prompt_toolkit-1.0.6-py3-none-any.whl (256kB) 100% |################################| 258kB 227kB/s Collecting pickleshare (from ipython) Downloading pickleshare-0.7.4-py2.py3-none-any.whl Collecting pygments (from ipython) Downloading Pygments-2.1.3-py2.py3-none-any.whl (755kB)
中略
Successfully installed colorama-0.3.7 decorator-4.0.10 ipython-5.1.0 ipython-gen
utils-0.1.0 pickleshare-0.7.4 prompt-toolkit-1.0.6 pygments-2.1.3 setuptools-25. 2.0 simplegeneric-0.8.1 six-1.10.0 traitlets-4.2.2 wcwidth-0.1.7 win-unicode-con sole-0.5
4.安装成功后,Scripts下面就会多了上面第3步显示的ipython的一些可执行文件。
执行ipython就可以验证是否安装成功了。
C:\Python34\Scripts>ipython Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:43:06) [MSC v.1600 32 bit (In tel)] Type "copyright", "credits" or "license" for more information. IPython 5.1.0 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??' for extra details. In [1]: %dir ERROR:root:Line magic function `%dir` not found. In [2]: %pwd Out[2]: 'C:\\Python34\\Scripts'
参考文章:https://www.douban.com/group/topic/76666669/
