tags: Problem python bug PIL Image
Python3.7, using the library image inside PIL just wants to get the length and wide of the picture
Newspaper is wrong
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\app_delete\files\1.png’
Process finished with exit code 1

From the source code, it is a lazy loading method. You must use other methods such as Show () will only close, but it doesn't active Close method, so when I travers the cycle, I am using the picture, I am being used ... but How do I solve it? Use other packages to get the width, high? Solve
When installing the python package with xgboost, the following error may occur: Because the terminal under Window is or the GBK encoding is displayed, the PIP source code is also modified. Open C: \ P...
forward from:Gentle and easy to light - windows pip install python module error summary Foreword: Put python these daysversion upgradeAfter that, I found that many of the pip installation modules were...
cookie acquisition Traceback (most recent call last): File “C:\Users\15300\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\common\service.py”, line 76, in start...
An error "PermissionError: [WinError 5] Access Denied" occurred during pip installation. Solution: 1. Cut to the directory shown by the arrow, and everyone will be slightly different. This &...
I encountered this problem while learning python today. I checked some other people's answers online and found that it still can't be solved. code show as below: Run under spyder and report an error. ...
When making image processing, I used three modules OS, PIL, CV2. I encountered a bug who plagued one morning, I investigated several resource monitor ~~~, bug as follows: Description of Requirement: 1...
After installing anaconda and cuda, cudnn, install tensorflow, and type the command: pip install --upgrade tensorflow-gpu The following error occurs: PermissionError: [WinError 5] Access denied. I sea...
When using pip install to install the package, such as: pip install scrapy scrapyd scrapyd-client spiderkeeper An error occurred: PermissionError: [WinError 5] Access is denied. : ‘C:\programdat...
forward from:Gentle and easy to light-summary of errors reported when pip installs python module under windows Foreword: After upgrading the python version these days, I found that a lot of pip in...