Tag Archives: No module named ‘sklearn.model_selection

No module named ‘sklearn.model_selection [How to Solve]

Run and import the following modules in Python

from sklearn.model_selection import train_test_split

An error occurred:

No module named ‘sklearn.model_ selection

Run Anaconda prompt, input CONDA list to view the versions of various libraries, and find that

Model is not included in version 0.17.1_ Select library, run the following command to update the library

View the version of the library when the update is complete

Run at the beginning of the code, no error, problem solving