Setup : ML and Data Science in Python

To Get Started Doing things in Machine Learning and Data Science in the practical way we need to set up our computer to do certain things like computation and analysis. as I am using python on a Linux more specifically (ubuntu) platform we'll be setting up Python and required libraries to get things working. I will also mention the process for Windows OS so you can write and execute and perform ML and Data Science Practicals on your computer.

Downloading and Installing Python
For Linux Users
Linux comes with preinstalled python as well as python 3 so there is no need to download and install.
But you can always check the installed version and run the update command for it on your computer.
python --version
sudo apt-get update python
python3 --version
sudo apt-get update python3
sudo apt-get update
For Windows Users
- Windows Users can always the latest build of python from Download Python.
- Then Run the setup.exe file that you just downloaded.
- Be Sure you check "Add Path" checkbox to avoid any further error.
- Once you are done Setting up Python Quickly run Terminal (for Linux) or Command Prompt (for Windows)
- Type " python3 "
- If no error is prompted you are good to go further install pip package manager for Python3.

Installing pip package manager for Python
For Linux Users
- Open Terminal
- sudo apt-get install python3-pip
For Windows Users
Windows Users Can follow this very simple tutorial to enable pip in windows.
after you have successfully installed and enabled pip in your system then you can move to the next step and install python libraries.
Installing Python Libraries
- From here steps are same for both system users.
- Windows Users open command prompt and Linux users open their terminal to install these packages or libraries for your system type the given installation commands.
NumPy
- a powerful N-dimensional array object
- sophisticated (broadcasting) functions
- tools for integrating C/C++ and Fortran code
- useful linear algebra, Fourier transform, and random number capabilities
Besides its obvious scientific uses, NumPy can also be used as an efficient multi-dimensional container of generic data. Arbitrary data-types can be defined. This allows NumPy to seamlessly and speedily integrate with a wide variety of databases.
pip3 install numpy
SciPy
The SciPy library is one of the core packages that make up the SciPy stack. It provides many user-friendly and efficient numerical routines such as routines for numerical integration and optimization.
pip3 install scipy
Pandas
pip3 install pandas
Scikit Learn

- Simple and efficient tools for data mining and data analysis
- Accessible to everybody, and reusable in various contexts
- Built on NumPy, SciPy, and matplotlib
pip3 install scikit-learn
matplotlib
pip3 install matplotlib
Final Words
As you have done setting up your machine you are good to go with Data Science and Machine learning practical approaches. Subscrbie to my newsletter and stay updated to our upcoming content.
0 comments