【问题标题】:Issue installing PySFML with pipenv使用 pipenv 安装 PySFML 时出现问题
【发布时间】:2018-03-22 03:36:17
【问题描述】:

我尝试按照说明here 安装 PySFML。 pipflat 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

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

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?

【问题讨论】:

    标签: python pip pipenv


    【解决方案1】:

    似乎需要一些标签。

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

    需求文件用于覆盖具有本地的依赖项 存在于版本控制中的补丁。例如,假设一个 依赖,来自 PyPI 的 SomeDependency 有一个错误,你等不及了 上游修复。您可以克隆/复制 src,进行修复并放置 它在 VCS 中带有标签 sometag。你会在你的 需求文件有这样一行:

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

    如果 SomeDependency 以前是您的顶级需求 requirements 文件,然后用新行替换该行。如果 SomeDependency 是一个子依赖,然后添加新行。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-01-08
      • 1970-01-01
      • 2019-10-30
      • 2018-07-17
      • 2018-12-05
      • 1970-01-01
      • 2021-09-01
      • 2019-08-29
      相关资源
      最近更新 更多