You may already have numba installed. You can check by trying to import numba, e.g. in Python type;
import numba
If this executes without error, then numba is already installed, and you can skip down to “Installing cython”.
If this reports an error, then you will need to try installing numba.
If you are using Anaconda Python, then you install using the conda command, e.g. on the command line type;
conda install numba
Otherwise, you will need to install using pip, e.g. on the command line type;
pip install numba
Check that your installation works by trying to import numba again, e.g. in python type;
import numba
If you still have problems, then visit the numba website for more installation instructions.
Note, numba can compile Python into code that can run on GPUs. We won’t be exploring this in this workshop. If you want to compile to GPUs, you will need to install the latest graphics drivers from nVidia, and the CUDA toolkit, e.g.
conda install cudatoolkit
This is not required or encouraged for this workshop.
The process to install cython is very similar. First, check if you have cython already installed by typing, in Python;
import cython
If this executes without error, then cython is already installed. You can move onto the next page.
If this reports an error, then you will need to try installing cython.
If you are using Anaconda Python, then you install using the conda command, e.g. on the command line type;
conda install cython
Otherwise, you will need to install using pip, e.g. on the command line type;
pip install cython
Check that your installation works by trying to import cython again, e.g. in python type;
import cython