Pyinstaller无法正常工作:base_library.zip上的权限被拒绝

时间:2019-02-09 22:51:03

标签: python windows-10 executable pyinstaller

我正在尝试使pyinstaller正常运行,因此我已经在一个非常简单的程序上对其进行了测试:

print("hello world")

一旦我尝试如下运行pyinstaller,我将收到关于无法创建base_library.zip的错误

>pyinstaller hello.py
127 INFO: PyInstaller: 3.4  
128 INFO: Python: 3.6.5  
128 INFO: Platform: Windows-10-10.0.16299-SP0  
130 INFO: wrote C:\Users\kollbenj\Documents\Executable 
Creation\Simple\hello.spec  
140 INFO: UPX is not available.  
147 INFO: Extending PYTHONPATH with paths  
['C:\\Users\\kollbenj\\Documents\\Executable Creation\\Simple',  
'C:\\Users\\kollbenj\\Documents\\Executable Creation\\Simple']  
148 INFO: checking Analysis  
148 INFO: Building Analysis because Analysis-00.toc is non existent  
148 INFO: Initializing module dependency graph...  
155 INFO: Initializing module graph hooks...  
168 INFO: Analyzing base_library.zip ...  
5950 ERROR: base_library.zip could not be created!  
Traceback (most recent call last):
File "c:\winpython\python-3.6.5.amd64\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)

*追溯到此的许多错误*

PermissionError: [Errno 13] Permission denied: 
'C:\\Users\\kollbenj\\Documents\\Executable 
Creation\\Simple\\build\\hello\\base_library.zip'  

我尝试使用管理cmd.exe,并且尝试使用完整文件名路径无济于事。请帮忙!

0 个答案:

没有答案