'phantomjs.exe' executable needs to be in PATH. (selenium PhantomJS python)

我是按照这个例子做的

http://www.cnblogs.com/luxiaojun/p/6144748.html


但是,无论怎样把存放 phantomjs.exe 的路径放到环境变量里,都是报这个错误。

看了这2篇文章,原来windows系统需要在路径前面加 r

http://blog.csdn.net/sinat_36764186/article/details/55520444 (这篇讲了要加r,但没提到怎么加)

http://blog.csdn.net/bzd_111/article/details/50496500(这篇的例子就是加了r的,应该是作者也用的windows)


猜你喜欢

转载自blog.csdn.net/codechelle/article/details/65666091