from sklearn.preprocessing import LabelEncoder,OneHotEncoder ModuleNotFoundError: No module named 'sklearn'
时间: 2023-10-13 13:14:15 浏览: 107
sklearn常用的API参数解析:sklearn.linear_model.LinearRegression
This error message suggests that the scikit-learn library is not installed on your system. You can install it using pip or conda depending on which package manager you prefer.
To install scikit-learn using pip, open a terminal or command prompt and type:
```
pip install scikit-learn
```
To install scikit-learn using conda, type:
```
conda install scikit-learn
```
After installing scikit-learn, you should be able to import and use the LabelEncoder and OneHotEncoder classes.
阅读全文