遇到这个问题按下面方法顺利解决我的问题,先卸载然后重新安装
1 PS C:windowssystem32> pip uninstall pyinstaller 2 Found existing installation: PyInstaller 3.6 3 Uninstalling PyInstaller-3.6: 4 Would remove: 5 c:program filespython37libsite-packagespyinstaller-3.6.dist-info* 6 c:program filespython37libsite-packagespyinstaller* 7 c:program filespython37scriptspyi-archive_viewer.exe 8 c:program filespython37scriptspyi-bindepend.exe 9 c:program filespython37scriptspyi-grab_version.exe 10 c:program filespython37scriptspyi-makespec.exe 11 c:program filespython37scriptspyi-set_version.exe 12 c:program filespython37scriptspyinstaller.exe 13 Proceed (y/n)? y 14 Successfully uninstalled PyInstaller-3.6 15 PS C:windowssystem32> pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip 16 Collecting https://github.com/pyinstaller/pyinstaller/archive/develop.zip 17 Downloading https://github.com/pyinstaller/pyinstaller/archive/develop.zip 18 4.2 MB 30 kB/s 19 Installing build dependencies ... done 20 Getting requirements to build wheel ... done 21 Preparing wheel metadata ... done 22 Requirement already satisfied: setuptools in c:program filespython37libsite-packages (from pyinstaller==4.0.dev0) (47.1.1) 23 Requirement already satisfied: pywin32-ctypes>=0.2.0; sys_platform == "win32" in c:program filespython37libsite-packages (from pyinstaller==4.0.dev0) (0.2.0) 24 Requirement already satisfied: pefile>=2017.8.1; sys_platform == "win32" in c:program filespython37libsite-packages (from pyinstaller==4.0.dev0) (2019.4.18) 25 Requirement already satisfied: altgraph in c:program filespython37libsite-packages (from pyinstaller==4.0.dev0) (0.17) 26 Requirement already satisfied: future in c:program filespython37libsite-packages (from pefile>=2017.8.1; sys_platform == "win32"->pyinstaller==4.0.dev0) (0.18.2) 27 Building wheels for collected packages: pyinstaller 28 Building wheel for pyinstaller (PEP 517) ... done 29 Created wheel for pyinstaller: filename=pyinstaller-4.0.dev0-py3-none-any.whl size=2933433 sha256=e84486ef70819168196c7498197b8533fb8c62421d23c73dfc2589ebeef7e578 30 Stored in directory: C:UsersxxAppDataLocalTemppip-ephem-wheel-cache-mdkbthuhwheels8a8d795d8288416c36a101b9acc7bf6b88e3b61357156c6a1efa63df 31 Successfully built pyinstaller 32 Installing collected packages: pyinstaller 33 Successfully installed pyinstaller-4.0.dev0 34 PS C:windowssystem32> 35 PS C:windowssystem32> 36 PS C:windowssystem32> pip show pyinstaller 37 Name: pyinstaller 38 Version: 4.0.dev0 39 Summary: PyInstaller bundles a Python application and all its dependencies into a single package. 40 Home-page: http://www.pyinstaller.org/ 41 Author: Hartmut Goebel, Giovanni Bajo, David Vierra, David Cortesi, Martin Zibricky 42 Author-email: None 43 License: GPLv2-or-later with a special exception which allows to use PyInstaller to build and distribute non-free programs (including commercial ones) 44 Location: c:program filespython37libsite-packages 45 Requires: altgraph, pefile, setuptools, pywin32-ctypes 46 Required-by: