为什么我不能使用 pypi 安装我的包而且我有错误?

why i cant install my package using pypi and i have error?

这是我的 setup.py 我的 icaptcha 包,可以创建简单的图像验证码

import pathlib
from setuptools import setup

# The directory containing this file
HERE = pathlib.Path(__file__).parent

# The text of the README file
README = (HERE / "README.md").read_text()

# This call to setup() does all the work
setup(
    name="ICaptcha",
    version="2.0.0",
    description="Create Simple Image Captcha For Normal Use",
    long_description=README,
    long_description_content_type="text/markdown",
    url="https://github.com/imanhpr/ICaptcha",
    author="Iman Hosseini Pour",
    author_email="imanhpr1999@gmail.com",
    license="MIT",
    classifiers=[
        "License :: OSI Approved :: MIT License",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.8",
    ],
    packages=['icaptcha'],
    include_package_data=True,
    install_requires=["pillow"],

)

我在 pypi 中上传了它,当我尝试安装我的包时,我看到了这个错误

pip install icaptcha
ERROR: Could not find a version that satisfies the requirement string (from ICaptcha) (from versions: none) 
ERROR: No matching distribution found for string (from ICaptcha)

这是什么错误,我该如何解决?

您将包上传到测试 PyPI:https://test.pypi.org/project/ICaptcha/

但不是 PyPI:https://pypi.org/project/ICaptcha/ returns 错误 404。

使用 PyPI 的依赖项从测试 PyPI 安装:

pip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ ICaptcha

或上传到 PyPI 并重复

pip install ICaptcha