Thee below commands were mostly taken from
this answer on StackOverflow, and assume you're running them with elevated permissions (e.g. with
sudo):
apt-get install nodejs-legacy apt-get install npm npm -g install phantomjs pip3 install seleniumapt-get install libfontconfig
That's it! Now you can start writing Python code.