pyinstaller安裝失敗

2021-10-08 08:14:53 字數 2898 閱讀 5420

報錯如下:

error: command errored out with exit status 1:

command: 'd:\python\python.exe' 'd:\python\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'c:\users\黃銳

cwd: c:\users\黃銳

complete output (36 lines):

running dist_info

creating c:\users\黃銳

writing c:\users\黃銳

writing dependency_links to c:\users\黃銳

writing entry points to c:\users\黃銳

writing requirements to c:\users\黃銳

writing top-level names to c:\users\黃銳

writing manifest file 'c:\users\黃銳

reading manifest file 'c:\users\黃銳

reading manifest template 'manifest.in'

error in sitecustomize; set pythonverbose for traceback:

syntaxerror: (unicode error) 'utf-8' codec can't decode byte 0xbb in position 0: invalid start byte (sitecustomize.py, line 21)

no previously-included directories found matching 'bootloader\build'

no previously-included directories found matching 'bootloader\.waf-*'

no previously-included directories found matching 'bootloader\.waf3-*'

no previously-included directories found matching 'bootloader\waf-*'

no previously-included directories found matching 'bootloader\waf3-*'

no previously-included directories found matching 'bootloader\_sdks'

no previously-included directories found matching 'bootloader\.vagrant'

warning: no previously-included files found matching 'bootloader\.lock-waf*'

no previously-included directories found matching 'doc\source'

no previously-included directories found matching 'doc\_build'

warning: no previously-included files matching '*.tmp' found under directory 'doc'

warning: no files found matching 'news\_template.rst'

no previously-included directories found matching 'news'

no previously-included directories found matching 'old'

no previously-included directories found matching 'scripts'

no previously-included directories found matching 'tests\scripts'

no previously-included directories found matching '.github'

warning: no previously-included files found matching '.*'

warning: no previously-included files found matching '*.yml'

warning: no previously-included files found matching '*~'

warning: no previously-included files found matching '.directory'

writing manifest file 'c:\users\黃銳

creating 'c:\users\黃銳

error: invalid command 'bdist_wheel'

----------------------------------------

error: command errored out with exit status 1: 'd:\python\python.exe' 'd:\python\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'c:\users\黃銳

原因是沒有安裝

pywin32

,安裝之後就能在

cmd

成功安裝

pyinstaller 了。

pip install pywin32

pip install pyistaller 即可

Pyinstaller的安裝和使用

我們可使用pyinstaller對python程式進行打包。下面對pyinstaller的安裝和使用,以及使用過程中需要注意的細節進行說明。我們使用pip安裝pyinstaller,pip的安裝方式也很簡單 pip install pyinstaller 打包程式以windows為例也是在cmd下執...

pyinstaller的安裝 使用 引數介紹

建議使用pip命令進行安裝,方便快捷,如下 pip install pyinstaller首先,在需要打包的 py檔案所在目錄下開啟cmd視窗,然後,使用如下命令進行打包。pyinstaller f py h,help 檢視該模組的幫助資訊 f,onefile 產生單個可執行檔案 d,onedir ...

安裝pyinstaller遇到的各種問題 小結

環境win7,anaconda3 使用的python版本是3.6.5 anaconda中整合了大部分常用的第三方庫,例如numpy等,但是有一些沒有整合需要手動安裝載入,之前安裝第三方庫使用的指令是 pip install 代表庫名字 問題1一如往常的安裝方法,pip install pyinsta...