I installed numpy with brew as seen here:
(venv6) me:pcode me$ brew install numpy
==> Downloading https://formulae.brew.sh/api/formula.jws.json
==> Downloading https://formulae.brew.sh/api/cask.jws.json
Warning: numpy 1.26.3 is already installed and up-to-date.
But then
Python 3.8.0 (v3.8.0:fa919fdf25, Oct 14 2019, 10:23:27)
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'numpy'
When I deactive the virtual environment (venv6) I get the same error. Any help would be appreciated.
Why are you using hombrew
? Surely the best solution would be to use pip install numpy
, that should fix your error.