尝试用 python 构建词云。
# Start with loading all necessary libraries
import pandas as pd
import matplotlib.pyplot as plt
from wordcloud import WordCloud
Run Code Online (Sandbox Code Playgroud)
pandas 导入得很好,尽管比预期的时间要长一些。现在我尝试matplotlib.pyplot使用 导入sudo pip3 install matplotlib并收到此错误响应
Collecting matplotlib
Using cached https://files.pythonhosted.org/packages/7c/ec/3d77b10ac3d30590f5431fd2dc59c58d20c020af107b47f8974896afc5c9/matplotlib-3.4.3-cp37-cp37m-manylinux1_x86_64.whl
Requirement already satisfied: cycler>=0.10 in /usr/local/lib/python3.7/dist-packages (from matplotlib) (0.10.0)
Requirement already satisfied: numpy>=1.16 in /usr/local/lib/python3.7/dist-packages (from matplotlib) (1.21.2)
Requirement already satisfied: python-dateutil>=2.7 in /usr/local/lib/python3.7/dist-packages (from matplotlib) (2.8.2)
Requirement already satisfied: pyparsing>=2.2.1 in /usr/local/lib/python3.7/dist-packages (from matplotlib) (2.4.7)
Collecting pillow>=6.2.0 (from matplotlib)
Using cached https://files.pythonhosted.org/packages/7d/2a/2fc11b54e2742db06297f7fa7f420a0e3069fdcf0e4b57dfec33f0b08622/Pillow-8.4.0.tar.gz …Run Code Online (Sandbox Code Playgroud)