小编sri*_*rao的帖子

如何在 GCP 中获得对 AI Platform 笔记本的 root 访问权限?

jupyter在 GCP AI Platform 笔记本实例的终端中以用户身份登录。

\n

我只想安装一些东西(无法通过 pip 安装),但无法使用 gcloud 命令以 root 用户身份进行 ssh。

\n

如果有人可以分享获得执行这些操作的权限的正确方法的指针,那就太好了。

\n

以下是导致问题的示例包安装的片段 -

\n
(base)~/datascience$ sudo cp ./pip-bash-completion/pip /etc/bash_completion.d/\n\nWe trust you have received the usual lecture from the local System\nAdministrator. It usually boils down to these three things:\n\n    #1) Respect the privacy of others.\n    #2) Think before you type.\n    #3) With great power comes great responsibility.\n\n[sudo] password for jupyter: \n
Run Code Online (Sandbox Code Playgroud)\n

sudo根据我看到的信息,我应该有权访问 -

\n
(base)~/datascience$ sudo cp ./pip-bash-completion/pip /etc/bash_completion.d/\n\nWe trust you …
Run Code Online (Sandbox Code Playgroud)

google-cloud-platform gcp-ai-platform-notebook

7
推荐指数
1
解决办法
3982
查看次数