admin管理员组

文章数量:1642430

官方网站: http://phantomjs/

淘宝镜像: https://npm.taobao/mirrors/phantomjs


问题一:

seleniummon.exceptions.WebDriverException: Message: 'phantomjs' executable needs to be in PATH.

原因:

环境变量问题。开始设置环境变量到 ~/.bashrc文件中,在Shell终端中可以运行,但是在Python代码中使用Selenium却报以上错误。

解决:

复制安装路径下的bin中的phantomjs文件到 /urs/local/bin 目录下即可。

本文标签: 过程中PhantomJS