Skip to main content
All CollectionsGetting Started In DeepnoteEnvironment
How to Install a Python Package From a Private Repository
How to Install a Python Package From a Private Repository
J
Written by Jakub Jurovych
Updated over a week ago

1. Go to github.com and click on View profile and more

Go to github.com and click on View profile and more

2. Click on Settings

Click on Settings

3. Click on Developer settings

Click on Developer settings

4. Click on Personal access tokens

Click on Personal access tokens

5. Click on Generate new token

Click on Generate new token

6. Type what the token is going to be used for

Type what the token is going to be used for

7. Check the "repo" scope

Check the "repo" scope

8. Click on Generate token

Click on Generate token

9. Click on Copy token

Click on Copy token

10. Go to Integrations | Deepnote

Go to Integrations | Deepnote

11. Click on Environment variables

Click on Environment variables

12. Type the integration name

Type the integration name

13. Type "access_token"

Type "access_token"

14. Paste your access token

Paste your access token

15. Click on Create integration

Click on Create integration

16. Go back to your project and click on Connect the environment variable integration

Go back to your project and click on Connect the environment variable integration

17. Install your package using the Git method and providing your access token

Example:

!pip install git+https://[email protected]/your_user/private-repo.git

Install your package using the Git method and providing your access token

18. Click on Run notebook and you're all set! πŸŽ‰

Click on Run notebook and you're all set! πŸŽ‰
Did this answer your question?