pip安装正在寻找软件包中所需的依赖项

问题描述

我用setup.py构建了一个程序包,其中有一个install_requires=get_requirements('requirements.txt'),在requirements.txt中,第一个必需的依赖项是bottle==0.12.18

然后我跑了

python setup.py sdist
twine upload --repository testpypi dist/*

上传成功后,我安装了pip install -i https://test.pypi.org/simple/ my_package==version_num,该错误提示

Collecting bottle==0.12.18 (from mypakage==version_num)
  Could not find a version that satisfies the requirement bottle==0.12.18 (from mypakage==version_num) (from versions: )
No matching distribution found for bottle==0.12.18 (from mypakage==version_num)

看起来它正在我的包中寻找依赖关系,这肯定会失败。这个错误突然开始发生,我之前从未见过。您是否知道为什么会发生这种情况以及如何以类似pip install -r requirements的方式寻找依赖关系?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)