PS D:\shanghuo\output\output> .\test_pinyin.exe
Traceback (most recent call last):
? File "test_pinyin.py", line 3, in <module>
? File "<frozen importlib._bootstrap>", line 991, in _find_and_load
? File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
? File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
? File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
? File "pypinyin\__init__.py", line 9, in <module>
? File "<frozen importlib._bootstrap>", line 991, in _find_and_load
? File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
? File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
? File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
? File "pypinyin\constants.py", line 11, in <module>
? File "<frozen importlib._bootstrap>", line 991, in _find_and_load
? File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
? File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
? File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
? File "pypinyin\pinyin_dict.py", line 22, in <module>
? File "pypinyin\pinyin_dict.py", line 15, in _load_pinyin_dict
? File "codecs.py", line 905, in open
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Administrator\\AppData\\Local\\Temp\\_MEI75202\\pypinyin\\pinyin_dict.json'
[4052] Failed to execute script 'test_pinyin' due to unhandled exception!
如何解決庶艾?
? ? ? ? 降版本到歷史版本即可厌衙!