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
Post a Comment