gpt4 book ai didi

python - 使用 Pipenv 安装 PySFML 时出现问题

转载 作者:太空宇宙 更新时间:2023-11-03 13:58:36 25 4
gpt4 key购买 nike

我尝试按照说明进行操作 here安装 PySFML。 pip flat out 不会接受此命令:

pip git+https://github.com/Sonkun/python-sfml?egg=pySFML
ERROR: unknown command "git+https://github.com/Sonkun/python-sfml?egg=pySFML"

我尝试使用pipenv(这是我理想中想要使用的),它给出了:

pipenv install git+https://github.com/Sonkun/python-sfml?egg=pySFML
zsh: no matches found: git+https://github.com/Sonkun/python-sfml?egg=pySFML

我将 url 更改为 # 而不是 ?,它似乎开始工作,但随后:

Installing git+https://github.com/Sonkun/python-sfml#egg=pysfml…
⠦Warning: You installed a VCS dependency in non–editable mode. This will work fine, but sub-dependencies will not be resolved by $ pipenv lock.
To enable this sub–dependency functionality, specify that this dependency is editable.
Collecting pysfml from git+https://github.com/Sonkun/python-sfml#egg=pysfml
Cloning https://github.com/Sonkun/python-sfml to /tmp/pip-build-7z0jrlmi/pysfml

Error: An error occurred while installing git+https://github.com/Sonkun/python-sfml#egg=pysfml!
No files/directories in /tmp/pip-build-7z0jrlmi/pysfml/pip-egg-info (from PKG-INFO)

(注意:将 ? 切换为 # 对于 pip 会产生相同的错误)

如何从这里开始让 pipenv 安装 PySFML?

最佳答案

似乎需要一些标签。

https://pip.pypa.io/en/stable/user_guide/#installing-packages

Requirements files are used to override a dependency with a local patch that lives in version control. For example, suppose a dependency, SomeDependency from PyPI has a bug, and you can't wait for an upstream fix. You could clone/copy the src, make the fix, and place it in VCS with the tag sometag. You'd reference it in your requirements file with a line like so:

git+https://myvcs.com/some_dependency@sometag#egg=SomeDependency

If SomeDependency was previously a top-level requirement in your requirements file, then replace that line with the new line. If SomeDependency is a sub-dependency, then add the new line.

关于python - 使用 Pipenv 安装 PySFML 时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49420107/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com