Skip to content

Instantly share code, notes, and snippets.

@Hiroshiba
Last active November 15, 2017 11:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hiroshiba/7096c01cea7643838c22911322e1006c to your computer and use it in GitHub Desktop.
Save Hiroshiba/7096c01cea7643838c22911322e1006c to your computer and use it in GitHub Desktop.
fix matplotlib backend TkAgg error
p=`python -c "import matplotlib; print(matplotlib.matplotlib_fname())"`
sed -i -e "s/backend\s*:\s*TkAgg/backend : Agg/g" $p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment