Skip to content Skip to sidebar Skip to footer

Mac - No Module Named 'scipy'

I've tried everything but can't get Scipy to work. Installed Scipy via Homebrew, seemed to work fine - but then the error when trying to import it. Uninstalled, installed via pip3,

Solution 1:

Well, somehow inadvertently fixed it. I un- and reinstalled numpy and scipy a few times to no avail. Finally uninstalled numpy, scipy, matplotlib, ipython and jupyter so that it would let me uninstall python. Reinstalling python numpy and scipy fixed nothing. Then, after running

pip3 install --user numpy scipy matplotlib ipython jupyter pandas sympy nose

I think this did it. Scipy and numpy are now apparently installed in

scipy in ./Library/Python/3.7/lib/python/site-packages (1.3.1)
numpy>=1.13.3in ./Library/Python/3.7/lib/python/site-packages (from scipy) (1.17.2)

Rather than in usr/local/lib/Python3.7/site-packages where a regular "pip3 install scipy" was installing it.

Now the only weird thing is that ./Library/Python/ only actually contains a folder called 2.7 and not 3.7 (no hidden folders). I'm weirded out, but hey, it works.

Post a Comment for "Mac - No Module Named 'scipy'"