No matching distribution found for sklearn.cross_validation
时间: 2023-10-16 07:27:49 浏览: 114
smw.tar.gz_Matching_SMW_smw.tar.gz_stereo_stereo matching
The `sklearn.cross_validation` module has been deprecated since version 0.18 and has been replaced by `sklearn.model_selection`. You should use `sklearn.model_selection` instead.
To install `scikit-learn` (also known as `sklearn`), you can use pip:
```
pip install -U scikit-learn
```
Once `scikit-learn` is installed, you can import `model_selection` instead of `cross_validation`:
```
from sklearn.model_selection import train_test_split
```
This will split your data into training and testing sets.
阅读全文