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
demandé il y a 8 mois197 vues
1 réponse
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

répondu il y a 8 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions