Custom packages in Sagemaker studio

0

Hi everyone,

how can i install custom OS libraries on Sagemaker studio? When I open a terminal it states:

root@0f04278e59cf:~/# yum install unzip

bash: yum: command not found

Thanks!

AWS
已提问 4 年前1630 查看次数
1 回答
0
已接受的回答

Short answer: [Studio UI] > File > New > Terminal > sudo yum install unzip
Then unzip away...

Long answer:
You can open a terminal in two different types of compute environment:

  1. On a specific kernel you're running: [Studio UI] > kernal tab > Terminial icon.
  2. On the compute studio (jupyter) itself: [Studio UI] > File > New > Terminal

In both options your personal files folder is accessible. In a kernel terminal: /root. In a Jupyter terminal: /home/sagemaker-user.
When opening a kernel terminal you'll have access to the software that is part of the kernel's container (say tensorflow container). Which in your case is missing yum. You can of course try apt-get, and such to install more tools.

AWS
已回答 4 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则