1.安装低版本Firefox浏览器:
https://download.mozilla.org/?product=firefox-52&os=win&lang=zh-CN;将版本号和系统版本自己更改就ok了
2.Python27 No module named PIL解决方法
原文地址:http://blog.csdn.net/qwe0754444/article/details/69390026?locationNum=15&fps=1
python ez_setup.py
python setup.py install
pip install wheel
安装PIL了:下载路径:http://www.lfd.uci.edu/~gohlke/pythonlibs
pip install Pillow-4.1.0-cp27-cp27m-win_amd64.whl
3. os.path.basename(self.path), self.start_error_message)
selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH.
firefox 47以上版本,需要下载第三方driver,即geckodriver;在http://docs.seleniumhq.org/download/的Third Party Drivers, Bindings, and Plugins下面找到Mozilla GeckoDriver,下载到任意电脑任意目录,解压后将该路径加入到PC的path(针对windows)即可。
注意:我配置完成后怎么弄都没好用,最后电脑重新启动好了,大家可以试一下
4.google 提示OSError: cannot write mode RGBA as JPEG
在使用JPEG前输入语句i= i.convert('RGB'),i自行变换
5.pytesseract.py FileNotFoundError: [WinError 2] 系统找不到指定的文件。