简体   繁体   中英

ipython won't run on Windows

After installing ipython on Windows via pip install ipython , I am unable to run it and receive the following error.

> 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\pkg_resources.py", line 2607, in <module>
    parse_requirements(__requires__), Environment()
  File "C:\Python27\lib\site-packages\pkg_resources.py", line 565, in resolve
    raise DistributionNotFound(req)  # XXX put more info here
pkg_resources.DistributionNotFound: pyreadline>=1.7.1

pyreadline was installed when ipython was via pip, but pip freeze shows warnings about the SVN location

> pip freeze
Warning: cannot find svn location for pyreadline==1.7.1.dev-r0
...
ipython==0.13.1
## FIXME: could not find svn URL in dependency_links for this package:
pyreadline==1.7.1.dev-r0
...

解决方法是卸载安装ipython时拉出的pyreadline版本( pip uninstall pyreadline )并从http://www.lfd.uci.edu/下载并安装pyreadline-1.7.1.win32-py2.7.‌exe 。 gohlke / pythonlibs /#pyreadline

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM