AWS EC2: Install Anaconda on Linux Instance

Written by GalarnykMichael | Published 2016/12/22
Tech Story Tags: aws | cloud-computing | python | ipython | tutorial

TLDRvia the TL;DR App

2. Sign in if you have account, if not make one

3. Click on EC2

4. Press Running Instances. If you don’t have an instance, see part 1 of the tutorial.

5. Select your instance and make sure your key (pem file) matches your key pair name

6. Use the chmod command below (in bold below) to make sure your private key file isn’t publicly viewable

chmod 400 /path_to_key/my_key.pem

7. ssh to your EC2 instance (see below, if you dont know how to ssh, please see part 2

ssh -i /path_to_key/my_key.pem user_name@public_dns_name

8. Copy link address from Anaconda installer archive.

Anaconda installer archive_Edit description_repo.continuum.io

I choose https://repo.continuum.io/archive/Anaconda2-4.1.1-Linux-x86_64.sh

9. In EC2 instance terminal, type

wget https://repo.continuum.io/archive/Anaconda2-4.1.1-Linux-x86_64.sh

10. In EC2 instance terminal, type

bash what_Anaconda_you_downloaded_Linux_x86_64.sh

11. In EC2 instance terminal, type

source .bashrc

Please let me know if you have any questions! You can either leave a comment here or leave me a comment on youtube. Part 4 is Setting up a Jupyter (IPython) Server (Notebook) on AWS.

If you don’t want to start a Jupyter Server, but want to use a normal Jupyter notebook, please see this other tutorial (Setting up and Using a Jupyter Notebook on AWS).


Published by HackerNoon on 2016/12/22