提问人:Bat BRT 提问时间:11/3/2023 更新时间:11/4/2023 访问量:22
使用 autopytoexe 时出现权限被拒绝的问题
Permission denied issue while using autopytoexe
问:
我正在尝试将python文件转换为.exe文件,但我系统地收到以下错误:
An error occurred while packaging
Traceback (most recent call last):
File "c:\program files\python37\lib\site-packages\auto_py_to_exe\packaging.py", line 131, in package
run_pyinstaller()
File "c:\program files\python37\lib\site-packages\PyInstaller\__main__.py", line 114, in run
run_build(pyi_config, spec_file, **vars(args))
File "c:\program files\python37\lib\site-packages\PyInstaller\__main__.py", line 65, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "c:\program files\python37\lib\site-packages\PyInstaller\building\build_main.py", line 720, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "c:\program files\python37\lib\site-packages\PyInstaller\building\build_main.py", line 667, in build
exec(code, spec_namespace)
File "C:\Users\NAME\AppData\Local\Temp\tmpfe6m2e7t\myprog.spec", line 37, in <module>
name='myprog')
File "c:\program files\python37\lib\site-packages\PyInstaller\building\api.py", line 701, in __init__
self.__postinit__()
File "c:\program files\python37\lib\site-packages\PyInstaller\building\datastruct.py", line 160, in __postinit__
self.assemble()
File "c:\program files\python37\lib\site-packages\PyInstaller\building\api.py", line 745, in assemble
shutil.copy(fnm, tofnm)
File "c:\program files\python37\lib\shutil.py", line 241, in copy
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "c:\program files\python37\lib\shutil.py", line 120, in copyfile
with open(src, 'rb') as fsrc:
PermissionError: [Errno 13] Permission denied: 'config\\SOFTWARE'
我尝试以管理员身份启动autopytoexe,并将文件移动到另一个目录中,但这并没有改变任何事情。 我还尝试转换其他(更基本的)文件并且转换工作正常,所以问题可能来自我正在使用的模块?(matplotlib、scipy、numpy 等我自己编写的模块也基于这三个模块)
如果有人知道可能导致此问题的原因以及如何解决它......
多谢!
答: 暂无答案
评论