I\'m unable to import numpy in Python 2.7 in the shell. I installed Python with brew install
, then numpy with sudo pip install
. I tried without
That output is normal. Have you tried running brew install openssl
followed by brew link --force openssl
and then brew install python
. The following thread helps describe the issue https://github.com/Homebrew/homebrew/issues/40516
As for workaround, try downgrading your Python to 2.7.9 like:
brew switch python 2.7.9
by overriding the existing one, as it seems there is some particular problem with 2.7.10. Then re-link it again (if required).
Also make sure your PYTHONPATH
is correct (you don't override it anywhere in your startup files).