scrapy\selenium兼容问题

在scrapy中from selenium import webdriver,但是总报错没有selenium这个模块:ModuleNotFoundError: No module named 'selenium'

但是引入from selenium import webdriver时又正常、没有报错,不在scrapy中使用selenium\phantomjs时是可以正常使用的,请诸位大神解惑,selenium已经换了好几个版本了,但还是报错

selenium版本和驱动版本要一致,否则会报错

查看相关兼容问题

selenium驱动与浏览器版本不符,现在应该可以使用最新版本浏览器加最新版本驱动了