Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save KostyaEsmukov/cfbe081204a088f659cd40cf3787459a to your computer and use it in GitHub Desktop.
Save KostyaEsmukov/cfbe081204a088f659cd40cf3787459a to your computer and use it in GitHub Desktop.

.

echo "/usr/local/lib/python3.5/site-packages" > ~/.virtualenvs/MY_VIRTUALENV/lib/python3.5/site-packages/mpl_toolkits.pth
echo "/usr/local/lib/python3.5/site-packages" > ~/.virtualenvs/MY_VIRTUALENV/lib/python3.5/site-packages/matplotlib.pth

See also:

@KostyaEsmukov
Copy link
Author

KostyaEsmukov commented Jan 8, 2017

Python 3.5 to 3.6 upgrade

Problem

Fatal Python error: Py_Initialize: unable to load the file system codec
ModuleNotFoundError: No module named 'encodings'

Solution

pip3 install matplotlib

and recreate the MY_VIRTUALENV

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment