1:安装Python,
下载后安装即可:https://www.python.org/downloads/windows/,(选择Python2或Python3)
添加Path环境变量
2:安装ez_setup.py,
下载http://peak.telecommunity.com/dist/ez_setup.py,cmd进入ez_setup.py文件目录执行python ez_setup.py
3:安装pyreadline,
下载https://pypi.python.org/pypi/pyreadline,zip解压缩之后安装即可
4:安装IPython,
下载https://pypi.python.org/pypi/ipython,(注意Py Version,我这里下载的ipython-5.4.1.tar.gz)
解压后在Cmd中进入此目录,执行python setupegg.py install即可。
测试IPython安装是否成功
PS:安装IPython执行python setupegg.py install如报“INCLUDE environment variable is empty”之类的错误,可尝试安装 Microsoft Visual C++ Compiler for Python 2.7 来解决。
下载 https://download.microsoft.com/download/7/9/6/796EF2E4-801B-4FC4-AB28-B59FBF6D907B/VCForPython27.msi