我写了一个小工具并上传到 pypi (这里),但我无法使用 pip 下载它。这是点子日志:
------------------------------------------------------------
c:\python32\scripts\pip-script.py run on 04/11/12 15:53:45
Downloading/unpacking undo
Getting page http://pypi.python.org/simple/undo
Could not fetch URL http://pypi.python.org/simple/undo: HTTP Error 301: Moved Permanently - Redirection to url '/simple/undo/' is not allowed
Will skip URL http://pypi.python.org/simple/undo when looking for download links for undo
Getting page http://pypi.python.org/simple/
Real name of requirement undo is undo
URLs to search for versions for undo:
* http://pypi.python.org/simple/undo/
Getting page http://pypi.python.org/simple/undo/
Getting page http://bitbucket.org/aquavitae/undo
Analyzing links from page http://pypi.python.org/simple/undo/
Skipping link http://bitbucket.org/aquavitae/undo (from http://pypi.python.org/simple/undo/); not a file
Could not parse version from link: https://bitbucket.org/aquavitae/undo/get/latest.tar.gz (from http://pypi.python.org/simple/undo/)
Skipping link https://bitbucket.org/aquavitae/undo/get/latest.tar.gz (from http://pypi.python.org/simple/undo/); wrong project name (not undo)
Could not find any downloads that satisfy the requirement undo
No distributions at all found for undo
Exception information:
Traceback (most recent call last):
File "C:\python32\lib\site-packages\pip\basecommand.py", line 104, in main
status = self.run(options, args)
File "C:\python32\lib\site-packages\pip\commands\install.py", line 245, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "C:\python32\lib\site-packages\pip\req.py", line 978, in prepare_files
url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
File "C:\python32\lib\site-packages\pip\index.py", line 157, in find_requirement
raise DistributionNotFound('No distributions at all found for %s' % req)
pip.exceptions.DistributionNotFound: No distributions at all found for undo
谁能看到我哪里出错了?我在代理后面,虽然这可能是问题,但 pip 与其他软件包没有问题,只是这个,所以我假设我以某种方式将它打包错了。