Skip to content

Instantly share code, notes, and snippets.

@iSkore
Last active January 21, 2023 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iSkore/5459d76679bec51ad11ff31b5b82e3b7 to your computer and use it in GitHub Desktop.
Save iSkore/5459d76679bec51ad11ff31b5b82e3b7 to your computer and use it in GitHub Desktop.
Install Jupyter Notebook with GDAL on AL2
sudo yum update -y
sudo yum upgrade -y
sudo yum-config-manager --enable epel
sudo yum install git vim -y
sudo yum install python3-pip -y
sudo yum install docker -y
sudo usermod -a -G docker ec2-user
id ec2-user
newgrp docker
pip3 install --user docker-compose
sudo systemctl enable docker.service
sudo systemctl start docker.service
sudo systemctl status docker.service
sudo yum -y install make automake gcc gcc-c++ libcurl-devel proj-devel geos-devel
# Install Conda (https://docs.conda.io/projects/conda/en/latest/user-guide/install/linux.html)
wget https://repo.anaconda.com/archive/Anaconda3-2022.05-Linux-x86_64.sh
bash Anaconda3-2022.05-Linux-x86_64.sh -b -p $HOME/anaconda3
source $HOME/anaconda3/bin/activate
conda init
conda update conda -y
# Install GDAL (https://dev.to/iamtekson/installation-of-gdal-on-jupyter-notebook-p5d)
conda create --name venv -y
conda activate venv
conda config --set channel_priority false
conda install -c anaconda ipykernel -y
conda install -c conda-forge gdal -y
python -m ipykernel install --user --name=venv
pip install notebook
jupyter notebook
pip install gdal
pip install jupyter
jupyter notebook
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment