Python ModuleNotFoundError: No Module named scipy














































Python ModuleNotFoundError: No Module named scipy



Python ModuleNotFoundError : No module named 'scipy'

scipy:


Scipy is a free and open-source Python library that contains sub-packages  which solves problems related to scientific computations. It is easy to understand and fast computational power.

If you were getting error while importing scipy, which means you haven't installed it.


And error will be like:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'scipy'


SOLUTIONS:

1.IF YOU'RE LINUX USER:

Run the following command on terminal:

sudo pip3 install scipy           #for python3

Once the installation get completed, type 'import scipy' and it works.



2.IF YOU'RE WINDOWS USER:

Run the following command in command prompt:

pip install scipy

wait for sometime until it gets installed.


3.FOR ANACONDA:

Run the following command in Conda Prompt:

conda install scipy




Comments