Downloading, Installing, and Starting Python SciPy

Get the Python and SciPy platform installed on your system if it is not already. One can easily follow the installation guide for it. 

1.1 Install SciPy Libraries:

Working on Python version 2.7 or 3.5+. 
There are 5 key libraries that you will need to install. Below is a list of the Python SciPy libraries required for this tutorial: 

  • scipy
  • numpy
  • matplotlib
  • pandas
  • sklearn

1.2 Start Python and Check Versions: 

It is a good idea to make sure your Python environment was installed successfully and is working as expected. 
The script below will help to test out the environment. It imports each library required in this tutorial and prints the version. 
Type or copy and paste the following script: 

Python3




# Check the versions of libraries
 
# Python version
import sys
print('Python: {}'.format(sys.version))
# scipy
import scipy
print('scipy: {}'.format(scipy.__version__))
# numpy
import numpy
print('numpy: {}'.format(numpy.__version__))
# matplotlib
import matplotlib
print('matplotlib: {}'.format(matplotlib.__version__))
# pandas
import pandas
print('pandas: {}'.format(pandas.__version__))
# scikit-learn
import sklearn
print('sklearn: {}'.format(sklearn.__version__))


If an error arises, stop. Now is the time to fix it.
 

30 minutes to machine learning

Similar Reads

1. Downloading, Installing, and Starting Python SciPy

Get the Python and SciPy platform installed on your system if it is not already. One can easily follow the installation guide for it....

2. Load The Data:

...

3. Summarize the Dataset:

Dataset – Iris data...

4. Data Visualization

...

5. Evaluate Some Algorithms

...