Installing Selenium and PhantomJS for Python 3 on Ubuntu 14.04

The 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 node
apt-get install nodejs-legacy
apt-get install npm
npm -g install phantomjs
pip3 install selenium

Why install nodejs-legacy? I saw this error without it.

That's it! Now you can start writing Python code.


Leave a comment

What color are green eyes? (spam prevention)
Code under MIT License unless otherwise indicated.
© 2020, Downranked, LLC.