With Python 3.7 on OS X I set up a virtual environment then
$ source venv/bin/activate
$ pip install numpy
$ which pip
pip is /Users/me/PycharmProjects/Test1/venv/bin/pip
(venv)
But rather than installing in the virtual environment numpy
is installed in
/usr/local/lib/python2.7
and numpy
doesn't appear in pip list
The issue occurs with both Python installed via the Python download or via brew
.
What possible settings could be causing the package to be installed in the wrong location.