Seite 1 von 1

Pip install von privaten GitHub Repository

Verfasst: Donnerstag 17. September 2020, 09:40
von fischer-klaus3

Code: Alles auswählen

  !pip install git+ssh://git@github.com/<MYNAME>/<MYREPOSITORY>/<MYFOLDER>.git
Ich versuche von meinen privaten GitHub Repository etwas zu installieren. Leider erhalte ich trotzdem einen Fehler. Kann mir jemand sagen wie ich diesen lösen könnte?

Code: Alles auswählen

    Collecting git+ssh://****@github.com/<MYNAME>/<MYREPOSITORY>/<MYFOLDER>.git
      Cloning ssh://****@github.com/<MYNAME>/<MYREPOSITORY>/<MYFOLDER>.git to /tmp/pip-req-build-lru05nb2
      Running command git clone -q 'ssh://****@github.com/<MYNAME>/<MYREPOSITORY>/<MYFOLDER>.git' /tmp/pip-req-build-lru05nb2
      Host key verification failed.
      fatal: Could not read from remote repository.
    
      Please make sure you have the correct access rights
      and the repository exists.
    ERROR: Command errored out with exit status 128: git clone -q 'ssh://****@github.com/<MYNAME>/<MYREPOSITORY>/<MYFOLDER>.git' /tmp/pip-req-build-lru05nb2 Check the logs for full command output.

Re: Pip install von privaten GitHub Repository

Verfasst: Donnerstag 17. September 2020, 09:48
von __deets__
Normalerweise geht das ohne git+ssh indem du einen Account bei github hast, der deinen öffentlichen Schlüssel hat. Und der vom Eigner des Repositories dann als zugriffsberechtigter eingetragen ist.

Re: Pip install von privaten GitHub Repository

Verfasst: Donnerstag 17. September 2020, 09:58
von Jankie
Eventuell Hilft dir ja auch dieser Beitrag bei Stackoverflow weiter:

https://stackoverflow.com/questions/133 ... repository