I've been looking at similar questions for about an hour now, but so far no suggestions I've seen have helped me troubleshoot this issue. For example: 'virtualenv' 'pip install sqlalchemy' but 'pip list' can not see did not help.
Setup:
- In my project directory, I typed simply
virtualenv env
- Then
source env/bin/activate
- I confirmed
pip
andpython
are being run from my venv withwhich pip
etc. pip install matplotlib
, and it looks successful:
...
Installing collected packages: subprocess32, kiwisolver, numpy, matplotlib
Successfully installed kiwisolver-1.0.1 matplotlib-2.2.2 numpy-1.14.2 subprocess32-3.2.7
python
and then>> import matplotlib
produces:
ImportError: No module named matplotlib
I've looked in env/lib/python2.7/site-packages and sure enough, no matplotlib.