已发布的 pypi 包出现在搜索中但不会 pip 安装

Published pypi package shows up on search but won't pip install

我遇到以下问题,我的包已发布但无法安装:

$ 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 看起来像

from setuptools import setup

setup(
    name='intellimatch',
    version='0.1.0',
    description='Intelligent matching/textsearch/cli interactivity that works for humans',
    url='https://bitbucket.org/codyc54321/intellimatch',
    author='codyc4321',
    license='MIT',
    packages=['intellimatch'],
    install_requires=[],
    zip_safe=False,
)

这是一个基本包,包含 1 个文件夹 intellimatch,没有依赖项,仅使用 Python。

pip 从 PyPI 下载包。 https://pypi.python.org/pypi/intellimatch 没有软件包,因此无需下载和安装。

给点一个 VCS URL:

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

pypi 上没有您项目的存档。请参阅以下步骤。

$ pip install intellimatch -vvv

这将向您显示调试回溯。

url 指向 https://pypi.python.org/simple/intellimatch/ which has no archive of your package hence it won't download and install your package. Taking from hitchhiker's guide,使用下面的命令上传您的包的分发。

$ python setup.py register sdist upload