当我在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)