Initially I was getting this error (No Module name was found scipy) So I installed a Scipy wheel file. Now I don\'t get the same error any more but I get cannot import
When you installed scipy with pip
in a Python version 3.6 and later try to run your code with Python 3.7 you will encounter this problem. So one solution is to uninstall scipy
pip3 uninstall scipy
and reinstall it (using an environment with Python 3.7):
pip3 install scipy
This will make sure that the installed version of scipy is compatible with your version of Python.
PS: When you updated Python from Python 3.6 to Python 3.7 it might be necessary to also reinstall pip
, so that pip
will use the correct version of Python internally.