我正在用python3.6编写程序
我将Tkinter用于GUI
当我运行pyinstaller时,它显示一条错误消息:“异常:无法找到PySide2插件目录”
`Traceback (most recent call last):
File "<string>", line 2, in <module>
File "C:\Users\엄민식\AppData\Local\Programs\Python\Python36-32\lib\site-packages\PySide2\__init__.py", line 49, in <module>
_setupQtDirectories()
File "C:\Users\엄민식\AppData\Local\Programs\Python\Python36-32\lib\site-packages\PySide2\__init__.py", line 21, in _setupQtDirectories
import shiboken2
File "C:\Users\엄민식\AppData\Local\Programs\Python\Python36-32\lib\site-packages\shiboken2\__init__.py", line 4, in <module>
from .shiboken2 import *
ImportError: DLL load failed: 지정된 프로시저를 찾을 수 없습니다.
Traceback (most recent call last):
File "C:\Users\엄민식\AppData\Local\Programs\Python\Python36-32\Scripts\pyinstaller-script.py", line 13, in <module>
load_entry_point('PyInstaller==3.4', 'console_scripts', 'pyinstaller')()
File "C:\Users\엄민식\AppData\Local\Programs\Python\Python36-32\lib\site-packages\PyInstaller\__main__.py", line 111, in run
run_build(pyi_config, spec_file, **vars(args))
File "C:\Users\엄민식\AppData\Local\Programs\Python\Python36-32\lib\site-packages\PyInstaller\__main__.py", line 63, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "C:\Users\엄민식\AppData\Local\Programs\Python\Python36-32\lib\site-packages\PyInstaller\building\build_main.py", line 838, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "C:\Users\엄민식\AppData\Local\Programs\Python\Python36-32\lib\site-packages\PyInstaller\building\build_main.py", line 784, in build
exec(text, spec_namespace)
File "<string>", line 17, in <module>
File "C:\Users\엄민식\AppData\Local\Programs\Python\Python36-32\lib\site-packages\PyInstaller\building\build_main.py", line 241, in __init__
self.__postinit__()
File "C:\Users\엄민식\AppData\Local\Programs\Python\Python36-32\lib\site-packages\PyInstaller\building\datastruct.py", line 158, in __postinit__
self.assemble()
File "C:\Users\엄민식\AppData\Local\Programs\Python\Python36-32\lib\site-packages\PyInstaller\building\build_main.py", line 500, in assemble
module_hook.post_graph()
File "C:\Users\엄민식\AppData\Local\Programs\Python\Python36-32\lib\site-packages\PyInstaller\building\imphook.py", line 410, in post_graph
self._load_hook_module()
File "C:\Users\엄민식\AppData\Local\Programs\Python\Python36-32\lib\site-packages\PyInstaller\building\imphook.py", line 377, in _load_hook_module
self.hook_module_name, self.hook_filename)
File "C:\Users\엄민식\AppData\Local\Programs\Python\Python36-32\lib\site-packages\PyInstaller\compat.py", line 736, in importlib_load_source
return mod_loader.load_module()
File "<frozen importlib._bootstrap_external>", line 399, in _check_name_wrapper
File "<frozen importlib._bootstrap_external>", line 823, in load_module
File "<frozen importlib._bootstrap_external>", line 682, in load_module
File "<frozen importlib._bootstrap>", line 251, in _load_module_shim
File "<frozen importlib._bootstrap>", line 675, in _load
File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
File "C:\Users\엄민식\AppData\Local\Programs\Python\Python36-32\lib\site-packages\PyInstaller\hooks\hook-PySide2.QtCore.py", line 12, in <module>
binaries = qt_plugins_binaries('codecs', namespace='PySide2')
File "C:\Users\엄민식\AppData\Local\Programs\Python\Python36-32\lib\site-packages\PyInstaller\utils\hooks\qt.py", line 132, in qt_plugins_binaries
pdir = qt_plugins_dir(namespace=namespace)
File "C:\Users\엄민식\AppData\Local\Programs\Python\Python36-32\lib\site-packages\PyInstaller\utils\hooks\qt.py", line 106, in qt_plugins_dir
raise Exception('Cannot find {0} plugin directories'.format(namespace))
Exception: Cannot find PySide2 plugin directories`
我没有使用pyside2,但是为什么pyinstaller发现pyside2可怕?
还是pyside2和tkinter相同?
我该怎么办?
在哪里可以找到pyside2插件目录?