Tag Archives: scikit-learn

[Solved] pyinstaller: error: unrecognized arguments: sklearn

How to Solve Error: pyinstaller: error: unrecognized arguments: sklearn

 

Solution:

Go to cmd
pyinstaller main.py  –hidden-import PySide2.QtXml –hidden-import sklearn –hidden-import sklearn.ensemble._forest –icon=”logo.ico”
Add the unrecognized sklearn to hidden import –hidden-import sklearn
The issue will be fixed.

 

[Solved] scikit-learn Error: ModuleNotFoundError: No module named ‘sklearn.utils.linear_assignment_’

Record some scikit-learn errors

The questions are as follows:

ModuleNotFoundError: No module named ‘sklearn. utils. linear_ assignment_’

Solution:
the sciki-learn version here is too high (it was 1.0.1 before, and it should be made into 0.19.X or before).
my operation is directly in the compiler In (IDE), set -> project: XXXXXX -> Python interpreter, and directly reinstall the corresponding version.

Error in scikit learn installation of CONDA

Installing scikit learn under win7 will report an error

ERROR conda.core.link:_execute(701): An error occurred while installing package 'defaults::scikit-learn-1.0.1-py37hf11a4ad_0'.
Rolling back transaction: done

LinkError: post-link script failed for package defaults::scikit-learn-1.0.1-py37hf11a4ad_0
location of failed script: E:\PPY\Scripts\.scikit-learn-post-link.bat
==> script messages <==
<None>
==> script output <==
stdout:
stderr:
return code: 1

This should be the problem caused by the source of CONDA. The solution can be installed using the following command

conda install -c anaconda scikit-learn