小编And*_*ndy的帖子

ImportError:没有名为'matplotlib.externals'的模块

当我在Ubuntu 16.04上使用python3中的seaborn.heatmap运行file1.py时,

我收到错误消息:

Traceback (most recent call last):
  File "file1.py", line 19, in <module>
    import seaborn as sns
ImportError: No module named 'seaborn'
Run Code Online (Sandbox Code Playgroud)

然后我$ sudo apt install python3-seaborn在终端运行命令:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libdsdp-5.8gf libglade2-0 libglpk36 python-cvxopt python-cycler
  python-decorator python-glade2 python-imaging python-jdcal python-joblib
  python-numexpr python-openpyxl python-pandas python-pandas-lib python-patsy
  python-py python-pytest python-scipy python-statsmodels
  python-statsmodels-lib python-tables python-tables-lib
Use 'sudo apt autoremove' to remove …
Run Code Online (Sandbox Code Playgroud)

python ubuntu matplotlib seaborn

7
推荐指数
2
解决办法
5131
查看次数

标签 统计

matplotlib ×1

python ×1

seaborn ×1

ubuntu ×1