I installed pyinstaller 3.1.1 and even tried the 3.2.dev build but neither seem to work. I am on Windows and I have python 3.5 installed. Any time I try to run pyinstaller I receive the following:
C:\Windows\system32>pyinstaller
Traceback (most recent call last):
File "c:\python35\lib\runpy.py", line 170, in _run_module_as_main
"__main__", mod_spec)
File "c:\python35\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Python35\Scripts\pyinstaller.exe\__main__.py", line 5, in <module>
File "c:\python35\lib\site-packages\PyInstaller\__main__.py", line 21, in <mod
ule>
import PyInstaller.building.build_main
File "c:\python35\lib\site-packages\PyInstaller\building\build_main.py", line
32, in <module>
from ..depend import bindepend
File "c:\python35\lib\site-packages\PyInstaller\depend\bindepend.py", line 42,
in <module>
from ..utils.win32.winmanifest import RT_MANIFEST
File "c:\python35\lib\site-packages\PyInstaller\utils\win32\winmanifest.py", l
ine 97, in <module>
from PyInstaller.utils.win32 import winresource
File "c:\python35\lib\site-packages\PyInstaller\utils\win32\winresource.py", l
ine 20, in <module>
import pywintypes
File "c:\python35\lib\site-packages\win32\lib\pywintypes.py", line 124, in <mo
dule>
__import_pywin32_system_module__("pywintypes", globals())
File "c:\python35\lib\site-packages\win32\lib\pywintypes.py", line 64, in __im
port_pywin32_system_module__
import _win32sysloader
ImportError: DLL load failed: The specified module could not be found.
Is the problem with the _win32sysloader.pyd? If so, I know I have the file located under the following directory: C:\Python35\Lib\site-packages\win32
.
解决办法
安装pywin32