发布的pypi包在搜索中显示,但不会pip-ins

2024-04-20 12:02:06 发布

您现在位置:Python中文网/ 问答频道 /正文

我的程序包已发布但无法安装时出现以下问题:

$ pip search "intellimatch"
intellimatch (0.1.0)  - Intelligent matching/textsearch/cli interactivity that works for humans

$ pip install intellimatch
Collecting intellimatch
  Could not find a version that satisfies the requirement intellimatch (from versions: )
No matching distribution found for intellimatch

$ pip install intellimatch==0.1.0
Collecting intellimatch==0.1.0
  Could not find a version that satisfies the requirement intellimatch==0.1.0 (from versions: )
No matching distribution found for intellimatch==0.1.0

它在https://bitbucket.org/codyc54321/intellimatch

setup.py看起来像

^{pr2}$

这是一个基本的包,有1个文件夹,intellimatch,没有依赖关系,只使用Python。在


Tags: installpipthefromforthatversionnot
2条回答

你的项目在pypi没有存档。请参见以下步骤。在

$ pip install intellimatch -vvv

这将显示调试回溯。在

该url指向https://pypi.python.org/simple/intellimatch/,它没有您的包的存档,因此它不会下载和安装您的包。从搭便车者的guide获取,使用下面的命令上载包的分发版。在

^{pr2}$

pip从PyPI下载包。在https://pypi.python.org/pypi/intellimatch没有包,因此没有可下载和安装的内容。在

给pip一个VCS URL

pip install git+https://bitbucket.org/codyc54321/intellimatch/src?egg=intellimatch

相关问题 更多 >