Discuss / Python / 有问题!

有问题!

Topic source

Alvin天枭

#1 Created at ... [Delete] [Delete and Lock User]

运行最后保存的那一句报错: Traceback (most recent call last): File "pil.py", line 34, in <module> image.save('code.jpg', 'jpeg') File "C:\Anaconda3\lib\site-packages\PIL\Image.py", line 1927, in save fp = builtins.open(filename, "w+b") FileNotFoundError: [Errno 2] No such file or directory: 'code.jpg'

Alvin天枭

#2 Created at ... [Delete] [Delete and Lock User]

知道问题了,没有把win10 defender的实时保护关掉,导致无法保存生成的图片


  • 1

Reply