【发布时间】:2020-12-26 12:56:12
【问题描述】:
我在尝试从 PyPI 安装我的包时遇到了一些奇怪的行为。
当我跑步时
pip install -i https://test.pypi.org/simple/ simple-api==0.0.0.0.5
失败了
ERROR: Could not find a version that satisfies the requirement singledispatch>=3.4.0.3 (from graphene-django->simple-api==0.0.0.0.5) (from versions: none)
ERROR: No matching distribution found for singledispatch>=3.4.0.3 (from graphene-django->simple-api==0.0.0.0.5)
但是,当我然后运行pip install singledispatch>=3.4.0.3 时,突然版本要求没有问题。在我以这种方式手动修复几个包后,pip 安装我的包没有问题。
setup.py 的可能相关部分:
install_requires=[
"django",
"graphene",
"graphene-django",
],
有人知道问题可能是什么吗?如果需要更多信息,请在 cmets 中告诉我,我将编辑问题。
【问题讨论】: