IPython安装过程 @win7 64bit

为了尝试一下IPython的使用,今天折腾了很久的从安装包msi文件安装,最后无法成功运行,无奈在可以连外网的机器windows7 64bit环境,重新安装了一次,为了避免后来人少走弯路,记录安装过程(前提是已经安装了官方的Python环境):

由于是64bit环境的,官方提示最好是从源代码安装,所以首先安装官方的步骤,安装setuptools:

参照页面:http://pypi.python.org/pypi/setuptools,自己选择是32bit还是64bit的windows,这里我下载ez_setup.py,运行之后setuptools自动安装好了。

下载IPython最新的源代码包,并解压到本地磁盘。下载地址:https://github.com/ipython/ipython/downloads

进入cmd,进入解压后的源代码目录,执行命令:python setupegg.py install

执行后,可以看到提示安装成功。IPython会安装到你的Python目录下的scripts下面,我本地是C:\Python27\Scripts\IPython.exe

IPython推荐安装readline,下面安装readline。 同样的去 https://launchpad.net/pyreadline/+download 下载readline源码包,

解压后进入源码目录,执行python setup.py install 安装。

最后,为了方便,把IPython的目录加入path环境变量。

emacs IPYTHON

I had the same problem. It has to do with ipython.el not finding the

IPython executable.

To fix it, open ipython.el, and replace line

(when (executable-find "ipython")

with

(when (executable-find "ipython.bat")

Next, add file ipython.bat to your path containing something like the

following:

C:\Python23\python.exe "C:\Program Files\IPython\IPython_shell.py"

Unfortunately it doesn't seem to work right on windows. The prompts

are missing so it's almost unusable.

Yaroslav

Windows XP SP2

Emacs 22.3

ipython 0.9.1

python-mode.el 4.75

ipython.el

these are the steps I needed to get ipython working under emacs

First, to get ipython.el to work you need to edit the ipython.bat file and add a -i flag: i.e.

@C:\Python26\python.exe -i C:\Python26\scripts\ipython.py %*

next, something is broken with the way readline's _outputfile interacts with ipython under emacs/winXP.

I can get IPython working in emacs by modifying line 122 in genutils.py:

if sys.platform == 'win32' and readline.have_readline and (not 'EM_PARENT_PROCESS_ID' in os.environ):

EM_PARENT_PROCESS is a variable inserted into the environment when running processes under emacs.

This tells ipython not to use readline's _outputfile when running under emacs on windows.

NOTE: readline._outputfile is required for proper color display when running ipython from the command shell.

Finally, tab complete is broken under python 2.6 and using my version of ipython.el (may be fixed in the latest version)

In ipython.el, change the value of ipython-completion-command-string to

(defvar ipython-completion-command-string

"print(';'.join(__IP.Completer.all_completions('%s'))) #PYTHON-MODE SILENT\n"

"The string send to ipython to query for all possible completions")

This uses 2.6 print() function conventions, and should work with python 2.5 as well.

It also looks as if the history files generated by the emacs IPython and the command prompt ipython are incompatible; sometimes the emacs IPython will crash with a strange readline error. I've been deleting the _ipython/history file, which is somewhat annoying (but IPython can log sessions easily anyway).

Jie

ipython安装过程_IPython安装过程 @win7 64bit相关推荐

  1. win7环境下安装office2010及其安装过程中出现error1935解决办法

    一.office2010安装包下载 登录MSDN我告诉你MSDN, 我告诉你 - 做一个安静的工具站,下载微软官方office安装包文件. 二.安装步骤 1.解压安装包文件 2.右击setup.exe ...

  2. centos7安装或升级Google chrome、安装Firefox浏览器详细过程及设置桌面快捷方式

    目录 背景: 一.centos7安装谷歌浏览器 1.Google chrome安装包下载 2.命令行安装 3.下载并安装字体所需依赖包 3.1.安装libvulkan.so.1()(64bit) 3. ...

  3. Linux Weblogic 10.3.6安装和漏洞补丁过程

    安装目录 Weblogic 10.3.6安装过程(含打补丁漏洞) 安装前准备 安装步骤 创建weblogic域 配置AdminServer后台运行,并优化JVM参数 打补丁过程 结尾 Weblogic ...

  4. ps安装程序检测到计算机重启过程,photoshop cs6安装过程中安装程序遇到错误:请重启计算机,解决办法...

    1.关闭防火墙和杀毒软件 2.删除注册表 依次展开HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager目录,找到其中的 ...

  5. python+Anaconda3+pycharm完整的下载安装过程及配置过程

    本篇我们讲解python的相关内容, 让我们来理解它们的关系及应用 python:编程语言 Anaconda:其中含有python编程中需要用到的工具包,如果安装Anaconda就不用安装python ...

  6. windows7安装sql server 2000安装步骤 及安装过程中遇到的问题和解决方式

    提示:文章写完后windows7安装sql server 2000安装步骤 及安装过程中遇到的问题和解决方式, 文章目录 一.ms sql server 2000是什么? 版本简介: **特点:** ...

  7. Linux 环境下安装 gcc 详细过程 以及安装 glibc

    1.了解一下 gcc 目前,GCC可以用来编译C / C++.FORTRAN.Java.OBJC.ADA等语言的程序,可根据需要选择安装支持的语言. 在安装之前,系统必须有 cc 或者 gcc 的编译 ...

  8. 安装黑苹果提示未能安装_(转)安装黑苹果 MAC OS X Lion 10.7.2过程 (未验证)

    1.硬件和软件 若要成功组织出一台黑苹果,最重要的是所购的pc机需要兼容mac osx 系统.其中首推主板,cpu,显卡,声卡,网卡. 我的组装机硬件清单: CPU:Intel I5 2500K, 3 ...

  9. vue.js安装过程(npm安装)

    一.开发环境 vue推荐开发环境: Node.js: JavaScript运行环境(runtime),不同系统直接运行各种编程语言 npm: Nodejs下的包管理器. webpack: 它主要的用途 ...

  10. Oracle EBS R12 运行adadmin 安装中文语言包过程中意外中断后的处理

    介绍Oracle EBS R12 运行adadmin 安装中文语言包过程中意外中断后的处. Oracle EBS R12 运行adadmin 安装中文语言包过程中意外中断或关机后,重新开机,运行数据库 ...

最新文章

  1. Eclipse导入servlet项目报错
  2. 图书管理系统之外键的增删改查
  3. mongodb简介、安装、启停(转并学习)
  4. web app中常用插件(zepto--用法类似于jquery、利用nodejs定制zepto)
  5. 在Linux系统中,使用useradd命令新建用户后,登录该用户时shell开头为$,不显示用户名和路径,如下:...
  6. Python 中的 10 个常见安全漏洞,以及如何避免(上)
  7. python基础编程语法-Python基础语法一
  8. jquery 动态添加,降低input表单的方法
  9. 搭建一个Vue项目(完整步骤)
  10. 十一、JUC包中的锁
  11. NodeJs 多核多进程并行框架实作 - CNode
  12. 快速去除PDF的打开密码和限制(四种方法)
  13. slk文件转wma_什么是WMA文件(以及如何打开一个文件)?
  14. 餐饮业实施5S管理的效益及实施方案
  15. WIN10彻底禁用UAC(用户账户控制)
  16. 构建您的第一个Web爬网程序,第3部分
  17. 浅谈数字音频处理的新技术
  18. 饥荒如何解锁机器人_《饥荒》全部人物怎样解锁 全人物解锁条件及方法一览...
  19. 2020牛客暑期多校训练营(第九场) The Escape Plan of Groundhog
  20. 10部关于数学的顶级纪录片

热门文章

  1. 【免费】自动检测删除微信好友教程 微信一键清死粉
  2. Tomcat日志配置,可结合log4j
  3. pid温度控制c语言程序,51单片机PID温度控制程序
  4. WPS Office 2019 For Linux 设置显示语言
  5. Adobe软件注册机
  6. winhex数据恢复linux,winhex数据恢复完整图文教程
  7. win10本地计算机策略进不去,Win10家庭版进不去组策略gpedit.msc的解决方法
  8. ps,ae,ui,ai,pr,cad,3DMAX,c4d,cdr,摄影后期
  9. python题目-奇偶数调用函数
  10. 淘客APP开发定制系统推荐