Notes

Setting Up FastAI Fastbook on a Fresh Ubuntu Instance

January 31, 2021

This is how to set up the fastai environment on a fresh Ubuntu instance, for those of us who have a computer with a good Nvidia graphics card and Ubuntu and don’t want to use a cloud-based platform.

  1. Install nvidia CUDA drivers. So far, the most dependable guide that I’ve found has been this askubuntu post.
  2. Verify that the CUDA drivers have been installed correctly following this guide.
  3. Download fastbook with git clone [email protected]:fastai/fastbook.git && cd fastbook.
  4. Install the latest version of python - sudo apt update && sudo apt install python3.9 python3.9-venv python3-setuptools
  5. Create a virtual environment: python3.9 -m venv env
  6. Activate the virtual environment: source env/bin/activate
  7. Install a build requisite: pip install wheel
  8. Install packages: pip install -r requirements.txt
  9. Launch the notebook with jupyter notebook