安装 pyinstaller 报错 以及本次安装成功方法

安装 pyinstaller 报错 以及本次安装成功方法

按照网上描述安装pyinstaller:1.安装pypiwin32,2.安装pyinstaller(出错)

安装pypiwin32
pip install pypiwin32  # pypiwin32安装成功

C:\package>pip install pypiwin32
Collecting pypiwin32
Downloading pypiwin32-223-py3-none-any.whl (1.7 kB)
Collecting pywin32>=223
Downloading pywin32-227-cp38-cp38-win_amd64.whl (9.1 MB)
|████████████████████████████████| 9.1 MB 226 kB/s
Installing collected packages: pywin32, pypiwin32
Successfully installed pypiwin32-223 pywin32-227

安装pyinstaller(出错)
pip install pyinstaller  # 出错 具体在下面

C:\package>pip install pyinstaller
Collecting pyinstaller
Using cached PyInstaller-3.6.tar.gz (3.5 MB)
Installing build dependencies … donse
Getting requirements to build wheel … done
Preparing wheel metadata … error
ERROR: Command errored out with exit status 1:
command: ‘c:\users\xxxx\appdata\local\programs\python\python38\python.exe’ ‘c:\users\xxxx\appdata\local\programs\python\python38\lib\site-packages\pip_vendor\pep517_in_process.py’ prepare_metadata_for_build_wheel ‘J:\系统临~1\Temp\tmpchdxkhlk’
cwd: J:\系统临时文件\Temp\pip-install-9bvff9qt\pyinstaller
Complete output (36 lines):
running dist_info
省略1w字…
error: invalid command ‘bdist_wheel’(这里?)
----------------------------------------
ERROR: Command errored out with exit status 1: ‘c:\users\xxxx\appdata\local\programs\python\python38\python.exe’ ‘c:\users\xxxx\appdata\local\programs\python\python38\lib\site-packages\pip_vendor\pep517_in_process.py’ prepare_metadata_for_build_wheel ‘J:\系统临~1\Temp\tmpchdxkhlk’ Check the logs for full command output.

再次安装:出错*2

C:\package>pip install pyinstaller
Collecting pyinstaller
Using cached PyInstaller-3.6.tar.gz (3.5 MB)
Installing build dependencies … done
Getting requirements to build wheel … done
Preparing wheel metadata … error
ERROR: Command errored out with exit status 1:
下面错误一样省略…

本次解决方法,安装wheel:
pip install wheel

C:\package>pip install wheel
Collecting wheel
Using cached wheel-0.34.2-py2.py3-none-any.whl (26 kB)
Installing collected packages: wheel
Successfully installed wheel-0.34.2

C:\package>pip install pyinstaller
Collecting pyinstaller
Using cached PyInstaller-3.6.tar.gz (3.5 MB)
Installing build dependencies … done
Getting requirements to build wheel … done
Preparing wheel metadata … done
Collecting pefile>=2017.8.1
Downloading pefile-2019.4.18.tar.gz (62 kB)
|████████████████████████████████| 62 kB 129 kB/s
Collecting pywin32-ctypes>=0.2.0
Downloading pywin32_ctypes-0.2.0-py2.py3-none-any.whl (28 kB)
Collecting altgraph
Downloading altgraph-0.17-py2.py3-none-any.whl (21 kB)
Requirement already satisfied: setuptools in c:\users\xxxx\appdata\local\programs\python\python38\lib\site-packages (from pyinstaller) (41.2.0)
Collecting future
Downloading future-0.18.2.tar.gz (829 kB)
|████████████████████████████████| 829 kB 273 kB/s
Building wheels for collected packages: pyinstaller, pefile, future
Building wheel for pyinstaller (PEP 517) … done
Created wheel for pyinstaller: filename=PyInstaller-3.6-py3-none-any.whl size=2926582 sha256=bc49a87eb2aa0ae1b018587394c2290ff22065dcc41aabb01b24fa6ca07ac0fc
Stored in directory: c:\users\xxxx\appdata\local\pip\cache\wheels\57\9a\e0\213da356866201eac897534a77c7af30b48b48c2734e30a25f
Building wheel for pefile (setup.py) … done
Created wheel for pefile: filename=pefile-2019.4.18-py3-none-any.whl size=60827 sha256=84c4b0e9db16aef795277623b759db2c631973e7c6b29453c505cceffc3216f1
Stored in directory: c:\users\xxxx\appdata\local\pip\cache\wheels\42\52\d5\9550bbfb9eeceaf0f19db1cf651cc8ba41d3bcf8b4d20e4279
Building wheel for future (setup.py) … done
Created wheel for future: filename=future-0.18.2-py3-none-any.whl size=491062 sha256=b8718ef044145f465cc91f9747ad73339384e0213499f469061311059b6daf43
Stored in directory: c:\users\xxxx\appdata\local\pip\cache\wheels\8e\70\28\3d6ccd6e315f65f245da085482a2e1c7d14b90b30f239e2cf4
Successfully built pyinstaller pefile future
Installing collected packages: future, pefile, pywin32-ctypes, altgraph, pyinstaller
Successfully installed altgraph-0.17 future-0.18.2 pefile-2019.4.18 pyinstaller-3.6 pywin32-ctypes-0.2.0

最终安装成功

安装 pyinstaller 报错 以及本次安装成功方法_第1张图片

你可能感兴趣的:(python学习,T-34)