31

When I run pip search linkchecker I get

linkchecker               - check websites and HTML documents for broken links

But when I try pip install linkchecker I get

  Could not find any downloads that satisfy the requirement linkchecker

What am i doing wrong?

1
  • That's odd. It's on PyPI. I tried using an explicit URL: pip install http://pypi.python.org/pypi/linkchecker/7.5 and got this: Cannot determine archive format of /tmp/pip-vRFtxt-build. From this ticket, it appears that the only option is to use setup.py: sourceforge.net/tracker/… Mar 4, 2012 at 23:21

3 Answers 3

35

pip uses http://pypi.python.org/simple/<package name> to look for download links, and this package points to a kind of "non-obvious" target. pip looks for tarballs/zips in the source page, but can't find a suitable url.

Use -vvv to see how pip looks for this package:

pip install linkchecker -vvv

You may realize http://pypi.python.org/simple/linkchecker/ points to http://sourceforge.net/projects/linkchecker/files/, and there is no .tar.gz as href, only as content, and pip can't handle it.

In this case you could try this:

pip install http://sourceforge.net/projects/linkchecker/files/latest/download?source=files#egg=linkchecker -vvvv
1
  • 7
    It would be nice to notify the package author about this installation issue. Mar 7, 2012 at 19:18
5

update pip first.

pip install --upgrade pip

then, you can try install it again.

0
5

I had the same problem for installing the ultramysql package from Github. However, trying the proposed solution of Hugo Tavares still gave the same error.

What helped in my case was adding git+ in front of the url, resulsting in the following line of code:

sudo pip install git+https://github.com/esnme/ultramysql

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.