新买一台服务,准备好好搞搞我的采集系统,却发现在另一台服务器上跑得好好的PY在这新机器上跑不起来,一直报“splinter.exceptions.DriverNotFoundError: No driver for phantomjs”错误。
折腾了一天,终于解决了,其实原因很简单,查splinter得知, 0.9版本以后就不再支持phantomjs了,回到之前能跑的服务器一看,果然是0.8版本的。pip show splinter | grep Version
解决办法:pip uninstall splinter,pip install splinter==0.8.0

评论