Installing SciPy

To install SciPy (https://pypi.org/project/scipy/) use the following command:

$ pip install scipy

To check if the installation has been performed correctly, just open a Python shell and try to import the scipy library as follows:

python
import scipy
Remember that the recommended approach is to install packages in virtual environments. See Chapter 1Setting Up OpenCV, in order to see how to create and manage virtual environments.