我正在尝试安装带有诗歌的Pycocotools(PythonAPI)包,但它没有这样做。如this case中所述,此软件包似乎没有正确打包,因此poetry无法安装
我试图按照链接问题的过程进行操作,但构建失败。我的目的是让它与火炬等一起工作
我想有一个选择是向相关的一揽子计划提交一个问题,但我不认为他们的回购协议会有任何变化,所以我可能要自己解决它。谢谢
poetry --version
#1.2.0a1
poetry add pycocotools
Command ['/home/david/.cache/pypoetry/virtualenvs/torch-coco-detection-l0t67CWY-py3.6/bin/python',
'/home/david/.local/share/pypoetry/venv/lib/python3.6/site-packages/virtualenv/seed/wheels/embed/pip-21.0.1-py3-none-any.whl/pip', 'install', '--use-pep517', '--disable-pip-version-check', '--prefix', '/home/david/.cache/pypoetry/virtualenvs/torch-coco-detection-l0t67CWY-py3.6', '--no-deps', 'file:/home/david/.cache/pypoetry/artifacts/09/27/0c/fc4978bf6a0608be936e16316e3c2ded466882d6fea591754d92e4f931/pycocotools-2.0.2.tar.gz'] errored with the following return code 1, and output: Processing /home/david/.cache/pypoetry/artifacts/09/27/0c/fc4978bf6a0608be936e16316e3c2ded466882d6fea591754d92e4f931/pycocotools-2.0.2.tar.gz Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'error' ERROR: Command errored out with exit status 1:
我认为有一种叫做relaxed-poetry的诗歌分支,它放松了诗歌的一些强制力。它可以安装像
pycocotools
这样的包,而不会出现错误。如果你认为它可以帮助你,试一下——它可以和诗歌一起安装相关问题 更多 >
编程相关推荐