ipython on Windows 7 can't find pyreadline

。_饼干妹妹 提交于 2019-12-06 07:05:44

问题


I am trying to install Ipython for Python3 on Windows 7.

installed Python3 using python-3.3.0.amd64.msi

installed pyreadline using pyreadline-1.7.1.win-amd64.exe

Downloaded distribute-0.6.34.tar.gz

Downloaded distribute_setup.py

From DOS prompt navigated to python33 directory and did

python distribute_setup.py

Installed IPython using ipython-0.13.1.py3-win-amd64-PROPER (I right clicked and chose "run as administrator")

When I run IPython now I get the message "Warning: Realine services not available or not loaded. WARNING: Proper color port under MS Windows requires the pyreadline library."

What gives?

EDIT: I spent about three hours this evening trying to install python3 and Ipython with no success. I've read several SO threads and the IPython documentation pertaining to installing on Windows... still no success. If someone wants to write down how to get the right that would be very nice.


回答1:


I have successfully installed IPython 0.13.1 on a Windows 7 Professional 32-bit computer. So let me share with you how I did it.

  1. Install Python 3.3

    • Install to default folder: C:\Python33
  2. Install distribute

    • Download distribute: http://pypi.python.org/pypi/distribute
    • Extract to: C:\distribute
    • At the command prompt: navigate to C:\distribute
    • Run on command line: C:\Python33\python distribute_setup.py
  3. Install pyreadline

    • Download pyreadline: https://github.com/pyreadline/pyreadline
    • Click on "ZIP" to download a zip file of PyReadline repository
    • Extract to C:\pyreadline
    • At the command prompt: navigate to C:\pyreadline
    • Run this: C:\Python33\python setup.py install
  4. Install pygments and pyzmq

    • At the command prompt: navigate to C:\Python33\Scripts
    • Run this: easy_install pygments pyzmq
  5. Download and install the next 3:

    • ZeroMq: http://www.zeromq.org
    • PySide: http://www.pyside.org
    • IPython: http://www.ipython.org
  6. Launch IPython

    • There should be a Start Menu shortcut
    • Start Menu > All Programs > IPython > IPythonQT



回答2:


You need to install the development release of pyreadline (it's on Github). Python 3 support has been added since 1.7.1.

You might want to look at Pyzo, an all-in-one scientific Python 3 distribution that includes IPython. That's probably the easiest way to get started. There are several similar distributions based on Python 2, but Pyzo is the first one to try with Python 3.



来源:https://stackoverflow.com/questions/14583458/ipython-on-windows-7-cant-find-pyreadline

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!