pip install download html docs #508

eadmaster opened this Issue Apr 14, 2012 · 4 comments


None yet

3 participants

happened with pip install sympy:

Using version 0.7.1-docs-html (newest of versions: 0.7.1-docs-html, 0.7.1, 0.7.1, 0.7.1, 0.7.0, 0.7.0, 0.6.6, 0.6.5, 0.6.4, 0.6.3, 0.6.2, 0.6.1, 0.6.0, 0.5.15, 0.5.14)
IOError: [Errno 2] No such file or directory: 'C:\PortableApps\Python\Python27\build\sympy\setup.py'

carljm commented Apr 14, 2012

Can't reproduce; pip install sympy works fine here. Is that really the exact command that you ran?

@carljm carljm closed this Apr 14, 2012

similar error with :
pip install pyglet
installation went fine after supplying direct url.

EDIT: i've just reinstalled pip from https://raw.github.com/pypa/pip/master/contrib/get-pip.py and the error persists!

carljm commented Apr 14, 2012

Ah, it fails with distribute but succeeds with setuptools, due to a difference in how versions are ordered. Distribute orders version 0.7.1-docs-html as later than 0.7.1, setuptools orders them the other way around. But the zipfile that pip is identifying as version 0.7.1-docs-html is not actually a Python package source distribution.

At root, this is a packaging bug on the part of sympy and pyglet; due to the way Python installers have to scrape links to find packages, naming a non-source-distribution zipfile or tarball according to the "packagename-version" pattern will cause pip and easy_install to mis-identify it as a source distribution. If the docs zipfile is renamed, for instance to sympy-docs-html-0.7.1.zip, this problem will go away.

agravier commented May 4, 2012

I also encountered this error. The simplest workaround is to pip install sympy==0.7.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment