python - Pypy and Matplotlib error in virtual enviroment -


i using ubuntu 16.04 , python 2.7, , have set virtual environment (virtualenv) using pypy interpreter. installed succeffully matplotlib library.

however, comes using on own code error messagge:

traceback (most recent call last):
file "my_script.py", line 20, in import matplotlib.pyplot plt
file "/home/.../venv/site-packages/matplotlib/pyplot.py", line 115, in _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
file "/home/.../venv/site-packages/matplotlib/backends/init.py", line 32, in pylab_setup globals(),locals(),[backend_name],0)
file "/home/.../venv/site-packages/matplotlib/backends/backend_tkagg.py", line 13, in import matplotlib.backends.tkagg tkagg
file "/home/.../venv/site-packages/matplotlib/backends/tkagg.py", line 9, in from matplotlib.backends import _tkagg runtimeerror: cannot dlopen tkinter module file

what can fix it?

edit: solution proposed here same, think problem (pypy , matplotlib) , error message quite different; many people search in google typing problems, think question useful :)


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -