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.

Comments

Leave a comment

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