problema gerar executavel no python

Python

08/11/2022

Bom dia.

Estou gerando um arquivo .exe em python. O arquivo é gerado mas quando executo ocorre este erro:
Traceback (most recent call last):
File "small_battery.py", line 17, in <module>
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "PyInstaller\loader\pyimod03_importers.py", line 495, in exec_module
File "learn.py", line 4, in <module>
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "PyInstaller\loader\pyimod03_importers.py", line 495, in exec_module
File "scipy\__init__.py", line 68, in <module>
File "scipy\__init__.py", line 65, in _delvewheel_init_patch_1_1_0
File "os.py", line 1117, in add_dll_directory
FileNotFoundError: [WinError 2] The system cannot find the file specified: ''''''''C:\\Auto-Glue-Welding\\dist\\Executar projeto\\scipy.libs''''
Jefferson

Jefferson

Curtidas 0

Respostas

Nomad

Nomad

08/11/2022

Parece estar faltando a instalação de alguma lib, pq não está encontrando "scipy.libs"
GOSTEI 0
Jefferson

Jefferson

08/11/2022

Parece estar faltando a instalação de alguma lib, pq não está encontrando "scipy.libs"


Só dá esse erro quando descomento esta importações

que está na classe no script learn.py que chamo no script small_battery.py

from sklearn.neural_network import MLPClassifier
from sklearn.model_selection import train_test_split
GOSTEI 0
POSTAR