Answer the question
In order to leave comments, you need to log in
Error while running py file from cmd. What to do?
I prescribe
python3 Backup.pyin cmd, command line in the right directory, open as Admin, everything worked yesterday
Traceback (most recent call last):
File "Backup.py", line 25, in
shutil.make_archive(
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1520.0_x64__qbz5n2kfra8p0\lib\shutil.py" , line 1045, in make_archive
filename = func(base_name, base_dir, **kwargs)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1520.0_x64__qbz5n2kfra8p0\lib\shutil.py", line 942, in _make_zipfile
zf.write(path, path)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1520.0_x64__qbz5n2kfra8p0\lib\zipfile.py", line 1776, in write
shutil.copyfileobj(src, dest, 1024*8)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1520.0_x64__qbz5n2kfra8p0\lib\shutil.py", line 202, in copyfileobj
buf = fsrc_read(length)
PermissionError: [Errno 13] Permission denied
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question