python
文章平均质量分 68
skyfoxbj
这个作者很懒,什么都没留下…
展开
-
使用python pip安装PyQt5时遇到的不能安装d3dcompiler_47.dll错误
使用python pip安装PyQt5时遇到的不能安装d3dcompiler_47.dll错误现象尝试解决方法现象初次尝试安装PyQt5,就遇到了个活见鬼的问题,错误信息如下:ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: ‘C:\Users\zhangbin\AppData\Roaming\Python\Python39\site-packages\PyQt5\Qt5\bin\d3原创 2021-06-01 18:40:04 · 2185 阅读 · 6 评论 -
聊一聊调试Tesseract-OCR和pytesseract过程中遇到的DPI的坑
**聊一聊调试Tesseract-OCR和pytesseract过程中遇到的DPI的坑**最近在做python爬虫项目的过程中,遇到了woff字体加密的页面需要破解。基本上解决方案就两种,一是将字体文件解析xml,根据xml中每个字的笔画数据特点识别出文字;二是用OCR直接识别文字;我选的是第二种,通用性更强一些。具体过程:1、安装Tesseract-OCR程序和语言模块都从这里下载:https://github.com/tesseract-ocr/tesseract用户手册:https://t原创 2021-05-12 20:34:09 · 1560 阅读 · 1 评论 -
调试selenium时,报错webdriver_prefs.json未找到
调试selenium时,报错webdriver_prefs.json未找到环境代码环境OS:windows 10python:3.7.2selenium 4.0.0a6post2代码# -*-coding:utf-8-*-# selenium 测试程序# python3 适用from selenium import webdriverdef main(): options = webdriver.FirefoxOptions() options.add_argume原创 2020-08-10 17:40:55 · 331 阅读 · 0 评论