我在导入seaborn时遇到以下错误(python和matplotlib都安装成功):
import seaborn
File "/usr/lib/python2.7/site-packages/seaborn/__init__.py", line 6, in <modul e>
from .rcmod import *
File "/usr/lib/python2.7/site-packages/seaborn/rcmod.py", line 8, in <module>
from . import palettes, _orig_rc_params
File "/usr/lib/python2.7/site-packages/seaborn/palettes.py", line 12, in <modu le>
from .utils import desaturate, set_hls_values, get_color_cycle
File "/usr/lib/python2.7/site-packages/seaborn/utils.py", line 12, in <module>
import matplotlib.pyplot as plt
File "/usr/lib/python2.7/site-packages/matplotlib/pyplot.py", line 115, in <mo dule>
_backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
File "/usr/lib/python2.7/site-packages/matplotlib/backends/__init__.py", line 32, in pylab_setup
globals(),locals(),[backend_name],0)
File "/usr/lib/python2.7/site-packages/matplotlib/backends/backend_tkagg.py", line 13, in <module>
import matplotlib.backends.tkagg as tkagg
File "/usr/lib/python2.7/site-packages/matplotlib/backends/tkagg.py", line 9, in <module>
from matplotlib.backends import _tkagg
RuntimeError: No such process
我检查了solution,但涉及安装tk-dev
,但似乎此套餐不再可用。
$ pip install tk-dev
Collecting tk-dev
Could not find a version that satisfies the requirement tk-dev (from versions: )
No matching distribution found for tk-dev
那我该如何解决这个错误呢?