PYTHON虚拟环境下打包小程序报警,什么原因如何解决?

63 INFO: PyInstaller: 4.3
63 INFO: Python: 3.8.0
64 INFO: Platform: Windows-10-10.0.19041-SP0
Traceback (most recent call last):
  File "c:\users\dell\appdata\local\programs\python\python38-32\lib\runpy.py", line 192, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\users\dell\appdata\local\programs\python\python38-32\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "D:\py_env\pack\Scripts\pyinstaller.exe\__main__.py", line 7, in <module>
  File "d:\py_env\pack\lib\site-packages\PyInstaller\__main__.py", line 112, in run
    spec_file = run_makespec(**vars(args))
  File "d:\py_env\pack\lib\site-packages\PyInstaller\__main__.py", line 58, in run_makespec
    spec_file = PyInstaller.building.makespec.main(filenames, **opts)
  File "d:\py_env\pack\lib\site-packages\PyInstaller\building\makespec.py", line 591, in main
    with open_file(specfnm, 'w', encoding='utf-8') as specfile:
PermissionError: [Errno 13] Permission denied: 'C:\\Windows\\System32\\办公自动化作业2.spec'

以管理员权限运行虚拟环境试试,你这个配置文件放到了C盘下面