问题描述:
python3.7 , 使用 PIL 里面的库 Image 只想获取图片的长和宽
报如下错误
D:\Python37-32\python.exe D:/pyFile/python_script/img_read.py
Traceback (most recent call last):
File “D:\Python37-32\lib\shutil.py”, line 557, in move
os.rename(src, real_dst)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: ‘C:\Users\Adminroot\Desktop\app_delete\files\1.png’ -> ‘C:\Users\Adminroot\Desktop\test\350_500\1.png’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “D:/pyFile/python_script/img_read.py”, line 43, in
shutil.move(img_filename, dir_name)
File “D:\Python37-32\lib\shutil.py”, line 572, in move
os.unlink(src)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: ‘C:\Users\Adminroot\Desktop\a