Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Philip's blog #29

Open
p208p2002 opened this issue Dec 6, 2023 · 0 comments
Open

Philip's blog #29

p208p2002 opened this issue Dec 6, 2023 · 0 comments

Comments

@p208p2002
Copy link
Owner

https://blog.philip-huang.tech/?page=blog_dockerfile_gh-action_ssh_pip-install-private

- tags: dockerfile gh-action ssh pip-install-private - date: 2021/10/6

對Python有進階認識的可能會知道可以直接從github repo安裝套件,對public repo可以這樣做

pip install git+https://github.com/USERNAME/REPO.git

那如果是一個private repo呢?這時候我們就必須使用ssh來進行身份認證

pip install [email protected]/username/private_repo.git

本機環境操作
直接使用上面的指令會發生permission denied;我們需要先產生一組ssh-key,並且添加到GitHub帳號中

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant