Мне нужно преобразовать python код в exe, и я использовал pyinstaller для этого, и после создания exe при запуске исполняемого файла я получаю сообщение об ошибке ниже.
Как часть создания этого работаю, я несколько раз модифицировал документ spe c и пробовал это сделать, но все равно получал ту же ошибку. Что может быть причиной проблемы здесь? Это текстовое сообщение или пиинсталлер? Пожалуйста, найдите ниже сообщение об ошибке и скрытый импорт, который я использую.
Ошибка:
File "HAR_exe.py", line 753, in <module>
HAR_results(file_name)
File "HAR_exe.py", line 548, in HAR_results
entity_level_comparison_output = entity_level_comparison(input_record, watchlist_df,safeguardcheckstatus,safeguardreason)
File "HAR_exe.py", line 317, in entity_level_comparison
company_name_comparison_thresholds, different_names_companies, entity_acronyms_dictionary
File "HAR\name_comparison_combined_test.py", line 405, in Name_Comp
import textacy.similarity
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "c:\users\abc\anaconda\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 489, in exec_module
exec(bytecode, module.__dict__)
File "site-packages\textacy\__init__.py", line 5, in <module>
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "c:\users\abc\anaconda\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 489, in exec_module
exec(bytecode, module.__dict__)
File "site-packages\textacy\corpus.py", line 17, in <module>
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "c:\users\abc\anaconda\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 489, in exec_module
exec(bytecode, module.__dict__)
"site-packages\textacy\io\__init__.py", line 15, in <module>
"<frozen importlib._bootstrap>", line 971, in _find_and_load
"<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
"<frozen importlib._bootstrap>", line 665, in _load_unlocked
"c:\users\abc\anaconda\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 489, in exec_module
exec(bytecode, module.__dict__)
"site-packages\textacy\io\spacy.py", line 14, in <module>
"<frozen importlib._bootstrap>", line 971, in _find_and_load
"<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
"<frozen importlib._bootstrap>", line 665, in _load_unlocked
"c:\users\abc\anaconda\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 489, in exec_module
exec(bytecode, module.__dict__)
"site-packages\textacy\spacier\__init__.py", line 1, in <module>
"<frozen importlib._bootstrap>", line 971, in _find_and_load
"<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
"<frozen importlib._bootstrap>", line 665, in _load_unlocked
"c:\users\abc\anaconda\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 489, in exec_module
exec(bytecode, module.__dict__)
"site-packages\textacy\spacier\components.py", line 11, in <module>
"<frozen importlib._bootstrap>", line 971, in _find_and_load
"<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
"<frozen importlib._bootstrap>", line 665, in _load_unlocked
"c:\users\abc\anaconda\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 489, in exec_module
exec(bytecode, module.__dict__)
"site-packages\textacy\text_stats.py", line 15, in <module>
"<frozen importlib._bootstrap>", line 971, in _find_and_load
"<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
"<frozen importlib._bootstrap>", line 665, in _load_unlocked
"c:\users\abc\anaconda\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 489, in exec_module
exec(bytecode, module.__dict__)
"site-packages\textacy\extract.py", line 20, in <module>
"<frozen importlib._bootstrap>", line 971, in _find_and_load
"<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
"<frozen importlib._bootstrap>", line 665, in _load_unlocked
"c:\users\abc\anaconda\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 489, in exec_module
exec(bytecode, module.__dict__)
"site-packages\textacy\spacier\utils.py", line 16, in <module>
"<frozen importlib._bootstrap>", line 971, in _find_and_load
"<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
"<frozen importlib._bootstrap>", line 665, in _load_unlocked
"c:\users\abc\anaconda\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 489, in exec_module
exec(bytecode, module.__dict__)
"site-packages\textacy\spacier\core.py", line 12, in <module>
"<frozen importlib._bootstrap>", line 971, in _find_and_load
"<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
"<frozen importlib._bootstrap>", line 665, in _load_unlocked
"c:\users\abc\anaconda\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 489, in exec_module
exec(bytecode, module.__dict__)
"site-packages\textacy\lang_utils.py", line 221, in <module>
"site-packages\textacy\lang_utils.py", line 91, in __init__
"site-packages\textacy\lang_utils.py", line 117, in _get_model_id
"site-packages\pkg_resources\__init__.py", line 472, in get_distribution
"site-packages\pkg_resources\__init__.py", line 344, in get_provider
"site-packages\pkg_resources\__init__.py", line 892, in require
"site-packages\pkg_resources\__init__.py", line 778, in resolve
pkg_resources.DistributionNotFound: The 'scikit-learn' distribution was not found and is required by the application
Скрытый импорт:
'cytoolz.utils',
'cytoolz._signatures',
'cymem',
'cymem.cymem',
'preshed.maps',
'murmurhash',
'murmurhash.mrmr',
'blis',
'blis.py',
'srsly',
'spacy.gold',
'spacy._align',
'spacy.syntax._parser_model',
'spacy.matcher._schemas',
'srsly.msgpack.util',
'thinc.neural._aligned_alloc',
'thinc.linalg',
'thinc.neural._custom_kernels',
'spacy.morphology',
'spacy.lexeme',
'spacy.cfile',
'spacy.parts_of_speech',
'spacy.serialize',
'spacy.serialize.bits',
'spacy.tokens.printers',
'spacy.syntax.iterators',
'spacy.serialize.packer',
'spacy.serialize.huffman',
'spacy.syntax.stateclass',
'spacy.syntax.transition_system',
'thinc',
'thinc.linear',
'thinc.linear.avgtron',
'thinc.linalg',
'thinc.linear.features',
'thinc.extra',
'thinc.extra.eg',
'thinc.linear.sparse',
'thinc.extra.mb',
'thinc.linear.serialize',
'spacy.syntax._parse_features',
'spacy.syntax.beam_parser',
'spacy',
'thinc.extra.search',
'pandas._libs.tslibs.timedeltas',
'pandas._libs.tslibs.np_datetime',
'pandas._libs.tslibs.nattype',
'pandas._libs.skiplist',
'spacy.strings',
'spacy.tokens.underscore',
'spacy.tokens._retokenize',
'spacy.syntax.nonproj',
'spacy.syntax.nn_parser',
'spacy.syntax.arc_eager',
'spacy.syntax._beam_utils',
'spacy.syntax.ner',
'thinc.neural._classes.difference',
'thinc.neural.ops',
'scipy.optimize._trlib',
'scipy.optimize._trlib._trlib',
'scipy.optimize',
'textacy.similarity',
'textacy',
'sklearn.utils.sparsetools._graph_validation',
'sklearn.utils.sparsetools._graph_tools',
'sklearn.utils.lgamma',
'sklearn.utils.weight_vector',
'sklearn',
'thinc.neural._custom_kernels'
'scipy._lib.messagestream'
Нужны предложения о том, как решить эту проблему а какие библиотеки были пропущены при скрытом импорте?