我在做一些练习,这是我的文件
from sklearn.datasets import fetch_20newsgroups
from sklearn.model_selection import train_test_split
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.naive_bayes import MultinomialNB
from sklearn.metrics import classification_report
# 数据抓取
news = fetch_20newsgroups(subset='all')
在终端下
(base) ➜ bayes python3 news.py
Traceback (most recent call last):
File "news.py", line 1, in <module>
from sklearn.datasets import fetch_20newsgroups
ModuleNotFoundError: No module named 'sklearn'
在emacs下