我正在将Python项目的打包工具从pipenv
迁移到poetry
。
但是,当试图安装jaro-winkler
(使用poetry add jaro-winkler
)时,我会得到以下错误:
• Installing jaro-winkler (2.0.1.linux-x86_64): Failed
EnvCommandError
Command ['/Users/user/Library/Caches/pypoetry/virtualenvs/project-K9Q4AUpY-py3.8/bin/pip', 'install', '--no-deps', 'file:///Users/user/Library/Caches/pypoetry/artifacts/45/cc/59/250d5db2cbcb15286dbae09b9f00727ea007ee685834709a5ac2772716/jaro_winkler-2.0.1.linux-x86_64.tar.gz'] errored with the following return code 1, and output:
Looking in indexes: https://pypi.org/simple
Processing /Users/user/Library/Caches/pypoetry/artifacts/45/cc/59/250d5db2cbcb15286dbae09b9f00727ea007ee685834709a5ac2772716/jaro_winkler-2.0.1.linux-x86_64.tar.gz
ERROR: file:///Users/user/Library/Caches/pypoetry/artifacts/45/cc/59/250d5db2cbcb15286dbae09b9f00727ea007ee685834709a5ac2772716/jaro_winkler-2.0.1.linux-x86_64.tar.gz does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found.
我的第一个想法是检查Github上的jaro-winkler
项目,根据错误消息... does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found
检查确实存在一个setup.py
或pyproject.toml
文件。
但是很明显,是一个setup.py文件,参见这里。
为什么诗歌找不到它并正确地安装它?
发布于 2022-05-12 07:15:08
包不是从GitHub安装的。它是从PyPi安装的。在那里,文件的内容看起来出乎意料。请参阅https://pypi.org/project/jaro-winkler/2.0.1/#files
https://stackoverflow.com/questions/72204325
复制相似问题