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
feita há 4 anos1635 visualizações
1 Resposta
0
Resposta aceita

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
respondido há 4 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas