can we install python in sagemaker instance using subprocess.run?

0

can we install python in sagemaker instance using subprocess.run? If yes how to write the command ?

cmd = 'sudo yum -y install python37' subprocess.run(cmd.split(" "), check=True, shell=True) I'm getting exception "returned non-zero exit status 1"

sashi
posta 8 mesi fa198 visualizzazioni
1 Risposta
0

Subprocess is part of the Python standard library. This means to use it, you will need Python installed already.

Python is installed on Sagemaker notebook instances, except for the kernels (Spark, SparkR, R). So, if you chose a kernel with python installed already, you don't have to worry about installing it.

Available kernels: https://docs.aws.amazon.com/sagemaker/latest/dg/nbi-al2.html#nbi-al2-kernel

con risposta 8 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande