I've done this and still get an error, do you have any other solutions? $ sudo apt-get install libosmesa6 $ export PYOPENGL_PLATFORM=osmesa