Skip to content

Latest commit

 

History

History
74 lines (43 loc) · 2.32 KB

README.md

File metadata and controls

74 lines (43 loc) · 2.32 KB

logo

Intro to geospatial analysis using Python - PTUA 2021

This is repo containing materials for Urban Analytics MSc lab

The lab is going to be run in jupyter notebook

Lab requirements

Please create new environmet for this lab using Python 3.7

Using Anaconda please install the following

Note: if you use MacOS, you can install the packages via terminal directly. if you use Windows, you can open Anaconda Powershell Prompt or Anaconda Prompt and install the packages from there.

#Check current conda channel priority

conda config --get channels

#Switch your default conda channel to conda-forge and set it as the highest priority

conda config --add channels conda-forge 

#Create new environment

conda create --name myenv python=3.7

#Check existing conda environment

conda info --envs

#Make sure that you are going to work in newly created environment

conda activate myenv

# Install python 3.7

conda install -c conda-forge python=3.7

# Install jupyter lab

conda install jupyterlab -c conda-forge

# Install packages

conda install -c conda-forge geopandas
conda install -c conda-forge matplotlib
conda install -c conda-forge mapclassify
conda install -c conda-forge contextily
conda install -c conda-forge pyarrow
conda install -c conda-forge geoplot
conda install -c conda-forge seaborn
conda install -c conda-forge descartes 

#Alternatively run the installation in one line

conda install -c conda-forge jupyterlab matplotlib geopandas mapclassify contextily pyarrow geoplot seaborn descartes 

#Start the  jupyter lab

jupyter lab

More information about creating python virtual environment with conda can be found from here. More details about managing conda channel can be found from 1 and 2. Difference between Anaconda Prompt and Anaconda Powershell Prompt can be found from 3.