您可能需要啓用Cloud Source Repositories
API。
做到這一點,最簡單的方法是點擊鏈接,有時會收到錯誤消息中的 - 像下面卻用自己的帳戶細節,並在年底項目名稱:https://console.cloud.google.com/apis/library/sourcerepo.googleapis.com/?project=<YOUR-PROJECT-NAME>
和可能你收到很多這樣的錯誤消息中被隱藏:
ERROR: (gcloud.source.repos.create) ResponseError: status=[PERMISSION_DENIED],
code=[403], message=[User[<[email protected]>] does not have permission to access
project[<YOUR-PROJECT-NAME>] (or it may not exist): The caller does not have permission].
details:
- Cloud Source Repositories API is not enabled. Please enable the API on the Google
Cloud console.
enable at: https://console.cloud.google.com/apis/library/sourcerepo.googleapis.com/?project=<YOUR-PROJECT-NAME>
Failed to find or create the repository datalab-notebooks.
Ask a project owner to create it for you.
將鼠標懸停在你的谷歌雲殼牌在錯誤信息中列出的地址,你甚至會得到一個超鏈接,帶你到那裏。當頁面打開時啓用它。
或者,您可以通過轉到APIs & Services/Library
並搜索Cloud Source Repositories
來跟蹤API。點擊出現的卡片,然後在目標頁面加載完成後,點擊ENABLE
按鈕。
你應該能夠在你的谷歌雲殼現在沒有問題,運行
datalab create junlab
命令。