ImportError: Nenhum módulo chamado matplotlib com o matplotlib instalado
A linha de código:
import matplotlib
O erro:
ImportError: nenhum módulo chamado 'matplotlib'
O problema:
which python3.4 % /usr/bin/python3.4
Onde o matplotlib está instalado?
sudo find /usr | grep matplotlib % /usr/lib/pymodules/python2.7/matplotlib/...
Algumas considerações:
SO: Linux Mint 17.2Eu preciso usar o Python 3.4Soluções:
import sys sys.path.append('/usr/lib/pymodules/python2.7/')
(Não estou feliz com este).
Usandopip3 install matplotlib
ousudo pip3 install matplotlib
(Recebendo erros, e eu também não gosto disso).
Usandosudo apt-get install python-matplotlib
(Pode ser o perfeito, mas instala o matplotlib no diretório python2.7).
Como posso fazer o matplotlib funcionar para python3? obrigado