python - Python包不安装依赖项
问题描述
我遵循了关于发布 python 包的教程。我已将reader
示例发布到 TestPyPI并尝试使用以下命令安装它。
pip install -i https://test.pypi.org/simple/ thrayld-reader-test
然而,这就是回应。
Looking in indexes: https://test.pypi.org/simple/
Collecting thrayld-reader-test
Downloading https://test-files.pythonhosted.org/packages/88/ba/e9d9327dae4139e4c0754a13f22a04131c65aabc5fd22fb87e99a52309f6/thrayld_reader_test-1.0.0-py3-none-any.whl (5.2 kB)
Collecting feedparser
Downloading https://test-files.pythonhosted.org/packages/ce/45/0f86efe62f6a0e1c3347e0c409dc680fc96e7951f6ecaf19aecd5a914b01/feedparser-6.0.3a1-py3-none-any.whl (82 kB)
|████████████████████████████████| 82 kB 111 kB/s
ERROR: Could not find a version that satisfies the requirement html2text (from thrayld-reader-test)
ERROR: No matching distribution found for html2text
pip
不下载依赖项,只抱怨他们不满意。
我的问题是为什么以及如何解决它?
我发现了一个类似的问题,但该解决方案不适用,因为我已经install_requires
在setup.py
示例中拥有了。
setup(
...
install_requires=[
"feedparser", "html2text", "importlib_resources", "typing"
],
...
)
解决方案
推荐阅读
- oop - 在 Common Lisp 的插槽说明符中使用和缺少 `:` 是否有技术原因?或者它只是一个纯粹的约定?
- python - 我有一个嵌套元组列表。[((('就业','机构'),8055),(('轨道','记录'),5472)]。我想把它转换成文本文件格式
- javascript - 滑块无法正常工作
- c++ - 如何自定义 .vcxproj 文件?
- sql - 计算同一列的出现次数
- kotlin - Kotlin 中的对象池
- python - Dash/Plotly - long_callback 因 celery/redis 后端而失败
- google-sheets - Google表格条件格式:如果单元格A已满,并且此单元格为空
- python - 如何将回调函数全局绑定到 tkinter 中的小部件类型?
- unity3d - 我试图让一个游戏对象留在我角色的网格中,因为这个游戏对象是角色的一部分