我正试图将一些txt文档添加到我的密码中,但当我读到pyinstaller maze.spec
时, 我正在发现一个许可错误。 我认为,一个简单的诉讼将予以纠正,但我仍在犯错误。 任何关于什么可能是错误的的想法?
Here is my error btw
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/bin/pyinstaller", line 8, in <module>
sys.exit(run())
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/PyInstaller/__main__.py", line 112, in run
run_build(pyi_config, spec_file, **vars(args))
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/PyInstaller/__main__.py", line 63, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/PyInstaller/building/build_main.py", line 732, in main
build(specfile, kw.get( distpath ), kw.get( workpath ), kw.get( clean_build ))
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/PyInstaller/building/build_main.py", line 679, in build
exec(code, spec_namespace)
File "maze.spec", line 20, in <module>
exe = EXE(pyz,
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/PyInstaller/building/api.py", line 443, in __init__
self.__postinit__()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/PyInstaller/building/datastruct.py", line 158, in __postinit__
self.assemble()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/PyInstaller/building/api.py", line 520, in assemble
os.remove(self.name)
PermissionError: [Errno 1] Operation not permitted: /Users/jr194/Bit Club/Test Cases/Maze_Solver_Stack/dist/maze
此外,我还检查了马齐格耳朵的许可,而且看来,我对使用者的许可很严格,我确信这意味着允许我读写。 因此,诚实地放弃了这种行为。