- 博客(2)
- 收藏
- 关注
原创 Python中pip install pil报错
存在问题Python中pip install pil 报错:ERROR: Could not find a version that satisfies the requirement pilERROR: No matching distribution found for pil出现问题原因及解决方法原因:Python3.7把PIL改名成pillow了,我的Python版本刚好是3.7!解决方法:改成 pip install pillow(因为我已经装好了才截的图,所以提示我已经有装p
2021-04-16 22:28:37
250
原创 PIL下Image的crop抠图不准确问题
存在的问题在学习python + Selenium自动化测试时,使用pillow对登录界面的验证码进行截图,出现抠出来的图不准确的问题。代码如下:from selenium import webdriverfrom PIL import Imageimport seleniumimport timedef test_pyautogui(): # 加载谷歌浏览器 driver = webdriver.Chrome() driver.get('http://localh
2021-04-16 22:18:14
606
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人