Python解决:Message: 'phantomjs' executable needs to be in PATH.

1 安装

从下方链接中下载phantomjs-2.1.1-windows.zip

  • 链接:http://phantomjs.org/download.html

  • 解压到某个文件夹下

2 添加路径

将…\phantomjs-2.1.1-windows\phantomjs-2.1.1-windows\bin文件的路径添加到系统变量PATH中
Python解决:Message: 'phantomjs' executable needs to be in PATH.

3 拷贝到Python安装目录

把phantomjs.exe拷贝放到python的安装目录下
Python解决:Message: 'phantomjs' executable needs to be in PATH.