请问各位大神,这是什么情况???
详见http://stackoverflow.com/questions/36153...
Solved by changing function in selenium.webdriver.phantomjs.service.py like follow:
was
def send_remote_shutdown_command(self):
if self._cookie_temp_file:
os.remove(self._cookie_temp_file)
after adding try/except construction:
def send_remote_shutdown_command(self):
try:
if self._cookie_temp_file:
os.remove(self._cookie_temp_file)
except PermissionError:
pass
大哥你是没有安装phantomjs 浏览器。可以在http://phantomjs.org直接下载,解压就可以用了。之后将路径配置下 driver = webdriver.PhantomJS(executable_path=r"E:phantomjs-2.1.1-windowsbinphantomjs.exe")
4 回答4.4k 阅读✓ 已解决
4 回答3.8k 阅读✓ 已解决
1 回答3.1k 阅读✓ 已解决
3 回答2.1k 阅读✓ 已解决
1 回答4.4k 阅读✓ 已解决
1 回答3.8k 阅读✓ 已解决
1 回答2.8k 阅读✓ 已解决
重启下电脑试试。