We will be using a number of Python packages for geospatial analysis.
An easy way to install all of these packages is to use a Python distribution such as Anaconda. In this workshop we will use anaconda to build an environment for Python. It does not matter which version of anaconda is downloaded as long as it is greater than 3.5.
On windows, all our work will begin from an anaconda prompt, which you can start as follows:
Start a terminal and navigate to the directory of the downloaded/ cloned materials. For example, if the materials now live in the directory /Users/knaaptime/Downloads/pysal-iale2022
, you need to navigate to that directory from the terminal (using command cd
):
Once we have done that, run:
conda-env create -f environment.yml
This will build a conda python 3 environment that sandboxes the installation of the required packages for this workshop so we don't break anything in your computer's system Python (if it has one).
This may take 10-15 minutes to complete depending on the speed of your network connection.
Once this completes, you can activate the workshop environment with:
conda activate pysal-iale2022
You're now all setup for the tutorial!
If you encounter the following error when starting jupyterlab:
FileNotFoundError: [WinError 2] The system cannot find the file specified
A solution is to issue the following command in the anaconda prompt:
python -m ipykernel install --user