2
respostas

quando eu coloco python classificacao.py da erro

C:\classificação>python classificacao.py Traceback (most recent call last): File "classificacao.py", line 12, in from sklearn.naivebayes import MultinomialNB File "C:\Python27\lib\site-packages\sklearn_init.py", line 133, in from . import checkbuild File "C:\Python27\lib\site-packages\sklearn_check_build__init.py", line 46, in raise_build_error(e) File "C:\Python27\lib\site-packages\sklearn__check_build__init.py", line 41, in raise_build_error %s""" % (e, local_dir, ''.join(dir_content).strip(), msg)) ImportError: DLL load failed: %1 nÒo Ú um aplicativo Win32 vßlido.


Contents of C:\Python27\lib\site-packages\sklearn_checkbuild: setup.py setup.pyc checkbuild.pyd __init.py __init.pyc


It seems that scikit-learn has not been built correctly.

If you have installed scikit-learn from source, please do not forget to build the package before using it: run python setup.py install or make in the source directory.

If you have used an installer, please check that it is suited for your Python version, your operating system and your platform.

insira seu código aqui
2 respostas

Oi Matheus, tudo bem?

Isso parece um erro na instalação da biblioteca scikit-learn. Talvez algum arquivo dela tenha sido corrompido.

Tenta instalar a biblioteca novamente, talvez o erro não ocorra.

quando eu instalo aparece

Requirement already satisfied: scikit-learn in c:\python27\lib\site-packages