python识别验证码遇到的问题
import pytesseractfrom PIL import Image
image = Image.open('code.BMP')
vcode = pytesseract.image_to_string(image)
print vcode代码没有问题的,但就是报ValueError: Attempted relative import in non-package
百度一堆什么,相对导入,绝对导入,都未解决
最后,直接写在64位python
安装32位python
解决。
页:
[1]