Reinstall Ubuntu

Python

  1. To set Python 3 as the default:
     sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 10
     sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.6 20
    

    (The higher number becomes the default.)

  2. Install pip

     sudo apt-get install python3-pip
     sudo apt install python-pip
    

wxPython

sudo apt install make gcc libgtk-3-dev libwebkitgtk-dev libwebkitgtk-3.0-dev libgstreamer-gl1.0-0 freeglut3 freeglut3-dev python-gst-1.0 python3-gst-1.0 libglib2.0-dev ubuntu-restricted-extras libgstreamer-plugins-base1.0-dev

pip3 install wxpython

(Go and make a cup of coffee!)

  1. Python packages to add

     pip install -U pytest
     pip install termcolor
     pip install mock
     pip install PyDispatcher
     pip install python-docx
     pip install PyPDF4
     pip install openpyxl
    
  2. Setup virtualenvwrapper, see these instructions

  3. Remove .pyc etc., see these instructions

Reinstall Ubuntu