Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS Deep Learning AMI Virtual Environment Activation

I'm trying to set up a Jupyter Server using AWS EC2 starting with a Deep Learning AMI (Ubuntu) Version 7.0 AMI. It says that it comes with separate virtual environments:

Comes with latest binaries of deep learning frameworks pre-installed in separate virtual environments: MXNet, TensorFlow, Caffe, Caffe2, PyTorch, Keras, Chainer, Theano and CNTK.

So I ssh into the instance and found an directory ~/anaconda3/envs/ which contains a bunch of folders like tensorflow_p36. But I was unable to find the activate files in them.

There doesn't seem to be any other folder that looks remotely like a virtual env so I'm stuck. Can someone help me?

Thanks!

like image 717
Archelangelo Avatar asked Dec 05 '25 04:12

Archelangelo


2 Answers

Try the command:

source activate pytorch_p36

Reference: https://docs.aws.amazon.com/dlami/latest/devguide/tutorial-pytorch.html

When you login to the machine, the MOTD (Message of the Day) on the login screen displays various source activate commands you can run. To find the source activate commands of other Deep Learning frameworks, see this reference:

https://docs.aws.amazon.com/dlami/latest/devguide/tutorial-conda.html

like image 84
Bhavin Thaker Avatar answered Dec 07 '25 18:12

Bhavin Thaker


The activate binary is in anaconda3/bin/activate. Your PATH is not set up correctly and therefore can not find activate binary. Specify it explicitly.

source anaconda3/bin/activate <env>
like image 40
Chhavi Choudhury Avatar answered Dec 07 '25 16:12

Chhavi Choudhury



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!