我已經寫了一個小工具並上傳到pypi(here),但我無法使用pip下載它。這裏是點子日誌:上傳到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
任何人都可以看到我要去哪裏錯了嗎?我在一個代理的後面,我認爲這可能是問題,但點與其他包沒有問題,只是這個,所以我認爲我已經以某種方式打包它錯了。
可以通過點擊跳過https鏈接嗎?您是否嘗試使用http鏈接? – tito 2012-04-11 14:34:13