如何解决Python包不安装依赖
我在发布 python 包时遵循了 tutorial。我已经发布了 reader
示例 to 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
不会下载依赖项,只会抱怨他们不满意。
我的问题是为什么以及如何解决它?
我找到了一个 similar question,但该解决方案不适用,因为我在 install_requires
中已经有 setup.py
,如示例中所示。
setup(
...
install_requires=[
"feedparser","html2text","importlib_resources","typing"
],...
)
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。