300字范文,内容丰富有趣,生活中的好帮手!
300字范文 > PermissionError: [WinError 32] 另一个程序正在使用此文件 进程无法访问

PermissionError: [WinError 32] 另一个程序正在使用此文件 进程无法访问

时间:2021-11-01 08:51:08

相关推荐

PermissionError: [WinError 32] 另一个程序正在使用此文件 进程无法访问

Traceback (most recent call last):

File "E:\Python3.7\lib\shutil.py", line 566, in move

os.rename(src, real_dst)

PermissionError: [WinError 32] 另一个程序正在使用此文件,进程无法访问。: 'D:/study/python/1001/test.word' -> 'D:/code/test.word'

多半打开了啥,没有close

Traceback (most recent call last):

File "E:\Python3.7\lib\shutil.py", line 566, in move

os.rename(src, real_dst)

PermissionError: [WinError 32] 另一个程序正在使用此文件,进程无法访问。: 'D:/study/python/1001/test.word' -> 'D:/code/test.word'

During handling of the above exception, another exception occurred:

多半是要操作的文件打开了,比如word,txt啥的

Traceback (most recent call last):

File "E:\Python3.7\lib\shutil.py", line 566, in move

os.rename(src, real_dst)

FileNotFoundError: [WinError 2] 系统找不到指定的文件

这种是要移动的路径不存在,如果用了

shutil.move的话哈

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。