我有一个使用python setup.py register
命令提交给Pypi的包:
https://bitbucket.org/lskibinski/et3
你可以在这里看到它: https://pypi.python.org/pypi?name=et3&version=1.0&:action=display
然而,由于一些神秘的原因,pip install et3
不起作用。我得到的错误是:
$ pip install et3 -vvv --no-cache-dir
Collecting et3
1 location(s) to search for versions of et3:
* https://pypi.python.org/simple/et3/
Getting page https://pypi.python.org/simple/et3/
Starting new HTTPS connection (1): pypi.python.org
"GET /simple/et3/ HTTP/1.1" 200 111
Analyzing links from page https://pypi.python.org/simple/et3/
Could not find a version that satisfies the requirement et3 (from versions: )
Cleaning up...
No matching distribution found for et3
Exception information:
Traceback (most recent call last):
File "/home/luke/dev/python/lax/venv/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/home/luke/dev/python/lax/venv/lib/python2.7/site-packages/pip/commands/install.py", line 299, in run
requirement_set.prepare_files(finder)
File "/home/luke/dev/python/lax/venv/lib/python2.7/site-packages/pip/req/req_set.py", line 370, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "/home/luke/dev/python/lax/venv/lib/python2.7/site-packages/pip/req/req_set.py", line 522, in _prepare_file
finder, self.upgrade, require_hashes)
File "/home/luke/dev/python/lax/venv/lib/python2.7/site-packages/pip/req/req_install.py", line 268, in populate_link
self.link = finder.find_requirement(self, upgrade)
File "/home/luke/dev/python/lax/venv/lib/python2.7/site-packages/pip/index.py", line 491, in find_requirement
'No matching distribution found for %s' % req
DistributionNotFound: No matching distribution found for et3
似乎找不到任何要下载的版本。我是否需要指定超过download_url
的内容?是否需要进一步手动步骤?
答案 0 :(得分:0)
download_url
似乎没有做太多事情。我不得不这样做:
python setup.py register
python setup.py sdist upload
......它现在有效。所有这些的文件很糟糕。