Have found a similar issue, however haven\'t found proper solution.
Here\'s a code:
import matplotlib.pyplot as plt plt.plot([1,2,3],[4,2,5]) plt.sh
If you are using pycharm and have matplotlib.py in your current working directory than you get this error. Just delete or rename the matplotlib.py file and it will work.