Sean Lynch
Sean Lynch

Reputation: 6487

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
...

Upvotes: 1

Views: 1248

Answers (1)

Sean Lynch
Sean Lynch

Reputation: 6487

The solution was to uninstall the version of pyreadline pulled when ipython was installed (pip uninstall pyreadline) and download and install pyreadline-1.7.1.win32-py2.7.‌exe from http://www.lfd.uci.edu/~gohlke/pythonlibs/#pyreadline

Upvotes: 4

Related Questions