Following directions in http://sfepy.org/doc-devel/installation.html#installing-sfepy I installed SfePy to my Python 2.7 anaconda using
conda install -c conda-forge sfepy
Immediately after that, I can no longer import numpy
>>> import numpy as np
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/david/anaconda2/lib/python2.7/site-packages/numpy/__init__.py", line 142, in <module>
from . import core
File "/Users/david/anaconda2/lib/python2.7/site-packages/numpy/core/__init__.py", line 91, in <module>
raise ImportError(msg.format(path))
ImportError: Something is wrong with the numpy installation. While importing we
detected an older version of numpy in ['/Users/david/anaconda2/lib/python2.7/site-packages/numpy']. One method of fixing this is to repeatedly uninstall numpy until none is found, then reinstall this version.
I see that there is some advice included at the very end of the message:
One method of fixing this is to repeatedly uninstall numpy until none is found, then reinstall this version.
Question(s):
- How exactly do I "repeatedly uninstall numpy" safely? This answer mentions
conda remove --force
but that sounds scary to me. - Once "none is found" would
conda install -c conda-forge sfepy
again reinstall one good numpy? - Why might this have happened? Might it reflect some underlying serious problem, or is it just "one of those things" and I should just "repeatedly uninstall numpy" and move on with my life?