Last active
January 21, 2023 16:57
-
-
Save iSkore/5459d76679bec51ad11ff31b5b82e3b7 to your computer and use it in GitHub Desktop.
Install Jupyter Notebook with GDAL on AL2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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