为什么用pyinstaller生成程序出错???
最近,身为小白的我,利用pyinstaller将Python文件转化成一个程序。前面几次都成功,唯独这次出错,命令行报错,请各位人指点。报错如下:
C:\Users\Administrator>pyinstaller -F E:\我的Python文件\008.py
Traceback (most recent call last):
File "c:\users\administrator\appdata\local\programs\python\python38-32\lib\run
py.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\administrator\appdata\local\programs\python\python38-32\lib\run
py.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38-32\Scripts
\pyinstaller.exe\__main__.py", line 5, in <module>
File "c:\users\administrator\appdata\local\programs\python\python38-32\lib\sit
e-packages\PyInstaller\__init__.py", line 67, in <module>
import pkg_resources
File "c:\users\administrator\appdata\local\programs\python\python38-32\lib\sit
e-packages\pkg_resources\__init__.py", line 26, in <module>
import zipfile
File "c:\users\administrator\appdata\local\programs\python\python38-32\lib\zip
file.py", line 13, in <module>
import shutil
ModuleNotFoundError: No module named 'shutil'