我正在尝试使用 pip 在 Github 上安装分叉存储库 (https://github.com/theatlantic/django-ckeditor/),但没有成功。
当我使用时
pip install -e git+git://github.com/theatlantic/django-ckeditor.git#egg=django-ckeditor
它确实安装了存储库的内容,但它是旧版本,没有我感兴趣的新更改。所以我尝试强制 pip 获取最新更新的分支,这显然是 atl/4.3.x 但我得到了这个奇怪的错误,比如分支的名称不正确或类似的东西:
$ pip install -e git+git://github.com/theatlantic/django-ckeditor.git@"atl/4.3.x"#egg=django-ckeditor
Obtaining django-ckeditor from git+git://github.com/theatlantic/django-ckeditor.git@atl/4.3.x#egg=django-ckeditor
Updating /home/mathx/.virtualenvs/goblets/src/django-ckeditor clone (to atl/4.3.x)
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Clone of '[email protected]:theatlantic/ckeditor-dev.git' into submodule path 'ckeditor/static/ckeditor/ckeditor-dev' failed
我是不是哪里搞错了?
谢谢。
对让 StackOverflow 出售我的数据来训练人工智能不感兴趣。
IRC 中的一位用户询问了类似的情况,我认为我们找到的答案也适用于这里。 (用户链接到这个问题说“同样的事情正在发生”,这就是我遇到的原因。)
考虑OP的输出:
从git+git获取django-ckeditor://github.com/theatlantic/django-ckeditor.git@atl/4.3.x#egg=django-ckeditor
OP 试图通过匿名 git(一个
git://
URL)pip install django-ckeditor。
错误是:
将“[电子邮件受保护]:theatlantic/ckeditor-dev.git”克隆到子模块路径“ckeditor/static/ckeditor/ckeditor-dev”失败
如果你查看 https://github.com/theatlantic/django-ckeditor/blob/atl/4.3.x/.gitmodules,django-ckeditor 会拉入 ckeditor-dev,并使用 SSH URL 来实现。
GitHub 不允许通过 SSH 进行匿名克隆。通过 SSH 使用 git 必须使用注册的 SSH 密钥。用户必须注册 GitHub、注册其公钥并适当配置私钥以便在安装时使用。
存储库所有者 (
theatlantic
) 应将其子模块 URL 更改为 https://
URL 或匿名 git://
。