I tried to install numpy using:
pip install numpy
It worked, but I got a warning:
Then I tried to install scipy with:
python -m pip install --user scipy and it worked. I've checked my packages list with:
pip freeze and both of them where on the list:
But when I tried to import them in my code I got the following error.
ImportError: Importing the multiarray numpy extension module failed. Most likely you are trying to import a failed build of numpy. If you're working with a numpy git repo, try `git clean -xdf` (removes all files not under version control). Otherwise reinstall numpy.
Original error was:
/home/spyros/.local/lib/python2.7/site-packages/numpy/core/multiarray.so: undefined symbol: PyUnicodeUCS2_FromObject
I tried to install the numpy again with the same way and the result was the same. Can you please help me solve this?