2016-01-13 115 views
0

我想使我正在處理的python腳本的可執行文件。想知道我能在這裏解決什麼問題。安裝pyinstaller導致異常

這就是我得到:

Microsoft Windows [Version 10.0.10586] (c) 2015 Microsoft Corporation. All rights reserved. 

C:\WINDOWS\system32>cd c:\users\tom\pyinstaller 

c:\Users\Tom\pyinstaller>pip install pyinstaller Collecting pyinstaller Using cached PyInstaller-3.1.zip Requirement already satisfied (use --upgrade to upgrade): setuptools in c:\program files (x86)\python 3.5\lib\site-packages (from pyinstaller) Collecting pypiwin32 (from pyinstaller) Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed out. (read timeout=15)",)': /simple/pypiwin32/ Using cached pypiwin32-219-cp35-none-win32.whl Installing collected packages: pypiwin32, pyinstaller Exception: Traceback (most recent call last): File "c:\program files (x86)\python 
3.5\lib\site-packages\pip\basecommand.py", line 211, in main 
    status = self.run(options, args) File "c:\program files (x86)\python 3.5\lib\site-packages\pip\commands\install.py", line 311, in run 
    root=options.root_path, File "c:\program files (x86)\python 3.5\lib\site-packages\pip\req\req_set.py", line 646, in install 
    **kwargs File "c:\program files (x86)\python 3.5\lib\site-packages\pip\req\req_install.py", line 803, in install 
    self.move_wheel_files(self.source_dir, root=root) File "c:\program files (x86)\python 
3.5\lib\site-packages\pip\req\req_install.py", line 998, in move_wheel_files 
    isolated=self.isolated, File "c:\program files (x86)\python 3.5\lib\site-packages\pip\wheel.py", line 339, in move_wheel_files 
    clobber(source, lib_dir, True) File "c:\program files (x86)\python 3.5\lib\site-packages\pip\wheel.py", line 317, in clobber 
    shutil.copyfile(srcfile, destfile) File "c:\program files (x86)\python 3.5\lib\shutil.py", line 115, in copyfile 
    with open(dst, 'wb') as fdst: PermissionError: [Errno 13] Permission denied: 'c:\\program files (x86)\\python 
3.5\\Lib\\site-packages\\PyWin32.chm' 

c:\Users\Tom\pyinstaller> 

回答

0
PermissionError: [Errno 13] Permission denied 

你沒有以管理員權限運行命令提示符。

打開開始菜單搜索cmd,然後按CTRL + SHIFT + ENTER啓動command prompt elevated