spicy python code example Example 1: update scipy pip install --upgrade scipy Example 2: install scypi sudo pip3 install scipy