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 年前檢視次數 1629 次
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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南