首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >"git@github.com:权限被拒绝(公开密钥)“在安装xero-python-OAuth2-Start-master的依赖项时

"git@github.com:权限被拒绝(公开密钥)“在安装xero-python-OAuth2-Start-master的依赖项时
EN

Stack Overflow用户
提问于 2020-08-06 11:25:37
回答 1查看 1.3K关注 0票数 2

我正在尝试使用xero-python-OAuth2-初学者-主人,但我无法通过第一步!我在Windows上,我安装了python 3.8、Visual代码(我也用Anaconda套装尝试过)和最新的Git。

当我试图运行requirments.txt上的依赖项时,我会得到错误Permission denied。请参见下面的使用Windows的PowerShell (也尝试使用cmd、Anaconda PowerShell和Anaconda CMD)。

代码语言:javascript
复制
PS C:\Users\m.*\OneDrive\Python\xero-python-oauth2-starter-master> pip install -r requirements.txt
Collecting flask
  Using cached Flask-1.1.2-py2.py3-none-any.whl (94 kB)
Collecting Flask-Session
  Cloning https://github.com/SqrtMinusOne/flask-session.git (to revision 560d00f1a84a9924d788a4f4e1ef35c5cf94c76d) to c:\users\m.*\appdata\local\temp\pip-install-d803d7fn\flask-session
  Running command git clone -q https://github.com/SqrtMinusOne/flask-session.git 'C:\Users\m.*\AppData\Local\Temp\pip-install-d803d7fn\Flask-Session'
  Running command git checkout -q 560d00f1a84a9924d788a4f4e1ef35c5cf94c76d
  Running command git submodule update --init --recursive -q
  git@github.com: Permission denied (publickey).
  fatal: Could not read from remote repository.

  Please make sure you have the correct access rights
  and the repository exists.
  fatal: clone of 'git@github.com:mitsuhiko/flask-sphinx-themes.git' into submodule path 'C:/Users/m.*/AppData/Local/Temp/pip-install-d803d7fn/Flask-Session/docs/_themes' failed
  Failed to clone 'docs/_themes'. Retry scheduled
  git@github.com: Permission denied (publickey).
  fatal: Could not read from remote repository.

  Please make sure you have the correct access rights
  and the repository exists.
  fatal: clone of 'git@github.com:mitsuhiko/flask-sphinx-themes.git' into submodule path 'C:/Users/m.*/AppData/Local/Temp/pip-install-d803d7fn/Flask-Session/docs/_themes' failed
  Failed to clone 'docs/_themes' a second time, aborting
ERROR: Command errored out with exit status 1: git submodule update --init --recursive -q Check the logs for full command output.
WARNING: You are using pip version 20.1.1; however, version 20.2.1 is available.
You should consider upgrading via the 'c:\users\m.*\appdata\local\programs\python\python38-32\python.exe -m pip install --upgrade pip' command.

requirments.txt含量

代码语言:javascript
复制
flask
# Werkzeug<1.0  # flask-session not compatible
# see https://github.com/fengsp/flask-session/pull/114
# using patched version of flask-session
git+https://github.com/SqrtMinusOne/flask-session.git@560d00f1a84a9924d788a4f4e1ef35c5cf94c76d#egg=Flask-Session
# Werkzeug<1.0  # flask-oauthlib not compatible
# using patched version of flask-oauthlib
git+https://github.com/ageis/flask-oauthlib.git@c5ea3ace957ceeeeab3cfb6556f32685ff292eab#egg=Flask-OAuthlib

# Use development version of xero-python
#git+ssh://git@github.com/xero-github/xero-python.git@020f780b4e2b48cb33746ae19ddab9fdf128e626#egg=xero-python
xero-python==0.5.1
EN

回答 1

Stack Overflow用户

发布于 2020-08-07 19:13:00

非常肯定,您可以通过为github配置文件设置SSH键来解决这个问题。

请检查您的SSH密钥是否为您的github配置文件?https://github.com/settings/keys设置好了。

我们在当前版本的Flask会话中遇到了一些问题,必须指向特定的提交并将该代码下载到我们的项目中。但要做到这一点,您的SSH键需要配置。

https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63282555

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档