[英]Why pip search can't find certain packages while they can be installed via pip install anyway
Why pip search
can't find certain packages (for example, html5lib
) while they can be installed via pip install
anyway? 为什么pip search
无法找到某些软件包(例如, html5lib
),而无论如何它们都可以通过pip install
?
E:\software\Python276\Scripts>pip search html5lib
html5lib-truncation - Truncating HTML with html5lib filter
HTML-Sanitizer-With-IFrame - Extends Python html5lib's sanitizer.HTMLSanitizer
to allow iframe elements.
microdata - html5lib extension for parsing microdata
html5tidy - Simple wrapper around html5lib & lxml.etree to
"tidy" html in the wild to well-formed xml/html
E:\software\Python276\Scripts>pip install html5lib
Downloading/unpacking html5lib
Running setup.py (path:c:\users\user\appdata\local\temp\pip_build_user\html5lib\setup.py) egg_info for package html5lib
Requirement already satisfied (use --upgrade to upgrade): six in e:\software\python276\lib\site-packages (from html5lib)
Installing collected packages: html5lib
Running setup.py install for html5lib
Successfully installed html5lib
Cleaning up...
html5lib is hidden in pypi.python.org , so it won't show up in search results but can still be accessed directly: html5lib 隐藏在pypi.python.org中 ,因此它不会显示在搜索结果中,但仍可以直接访问:
"_pypi_hidden": true,
I don't know exactly why the package is hidden (it's just a flag in a database field) but I'd strongly suspect it's caused by the package's odd versioning system (most recent first): 我不知道为什么包被隐藏(它只是数据库字段中的一个标志)但我强烈怀疑它是由包的奇数版本系统(最近的第一个)引起的:
The fix would be to release a proper 1.0 version that will show up above the beta versions and hopefully reset the hidden flag. 修复将是发布一个适当的1.0版本,将显示在beta版本之上,并希望重置隐藏的标志。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.