在个人电脑上测试没有出现问题,放到台式机上测试,遇到
Traceback (most recent call last):
File "tensorflow_cnn_train.py", line 2, in <module>
from gen_captcha import gen_captcha_text_and_image
File "/home/py/文档/1.Cnn_Captcha/gen_captcha.py", line 2, in <module>
from captcha.image import ImageCaptcha # pip install captcha
ImportError: No module named captcha.image
经过查询,发现少了几个模块,利用
pip uninstall Pillow
pip uninstall Pillow-PIL
pip install Pillow
pip install Pillow-PIL
运行后,成功