Issue When Importing Matplotlib
I've setted up a virtual enviroment for playing around with machine learning using pyenv. When i run import matplotlib.pyplot as plt this i what i get: ImportError
Solution 1:
I've figured out the solution! It seems that the python version (2.7.11
) that i was using in my virtual environment was configured in order to use unicode=ucs4
, so simply uninstalling virtualenv/python version and running
PYTHON_CONFIGURE_OPTS="--enable-unicode=ucs2" pyenv install 2.7.11
fixed the problem!
Solution 2:
For those who are using python3 or not in a special environment, I found that the conda folks have been working on this issue. What worked for me was from https://github.com/conda-forge/matplotlib-feedstock/issues/32
I did
conda install libgcc
And now my import does not throw an error.
Post a Comment for "Issue When Importing Matplotlib"