Skip to content Skip to sidebar Skip to footer

Running Phantomjs On Linux Using Python

I followed this link and now when I type phan and then tab (\t) it does autocomplete to phantomJS. Yet if I run phantomJS -v or phantomJS --version I get: bash: /usr/local/bin/phan

Solution 1:

It very much sounds like a 64 vs 32 bits issue.

To find out whats the version of your ubuntu, you can run

$ uname -i
x86_64

Then make sure to download the correct version of phantom

Also make sure your lib are corresponding to the version of your OS.

Solution 2:

You can check out this link.

driver = webdriver.PhantomJS(executable_path='Complete path/to/phantomjs.exe')

It worked well for me.

Post a Comment for "Running Phantomjs On Linux Using Python"