(venv1) F:\excel信息填入word模版>pyinstaller -F main.py
Traceback (most recent call last):
File "D:\Python36-32\Scripts\pyinstaller-script.py", line 6, in <module>
from pkg_resources import load_entry_point
File "D:\Python36-32\lib\site-packages\pkg_resources\__init__.py", line 3088, in <module>
@_call_aside
File "D:\Python36-32\lib\site-packages\pkg_resources\__init__.py", line 3072, in _call_aside
f(*args, **kwargs)
File "D:\Python36-32\lib\site-packages\pkg_resources\__init__.py", line 3101, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "D:\Python36-32\lib\site-packages\pkg_resources\__init__.py", line 574, in _build_master
ws.require(__requires__)
File "D:\Python36-32\lib\site-packages\pkg_resources\__init__.py", line 892, in require
needed = self.resolve(parse_requirements(requirements))
File "D:\Python36-32\lib\site-packages\pkg_resources\__init__.py", line 778, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pefile>=2017.8.1' distribution was not found and is required by PyInstaller