In this article, we are going to learn how to Install Pandas-ml with Pip in Python on your machine by using the pip install command. We will learn about how to install Pandas-ml on windows and also how we can install Pandas-ml on Linux.
Pre-requisites to Install Pandas-ml with Pip in Python
To install Pandas-ml we are going to use pip command so you will need to make sure you have pip installed on your machine.
Depending on the version of Python, that you have installed on your machine, you must have pip or pip3 (for Python3) installed
to run the Pandas ML installation command.
How to install Pandas-ml with Pip in Python on windows
On Windows operating system, installing Pandas ML is very easy and you can do that by using the below steps:
- Open a command terminal with administrator privileges.
- Type the command as given below and press enters to start the installation. pip install pandas_ml.
- For Python3, you can use pip3 also as given below: This will install the latest version on Pandas-ml on machine
pip3 install pandas_ml
How to install specific Pandas-ml on windows using pip
If you have a specific version requirement then you can install that version by specifying the version.For this, you must know which version of Pandas-ml you want to install.The pip command to install a specific version of Pandas-ml is:
pip install pandas_ml==0.9.0
#For Python3 , you can use pip3 also as given below:
pip3 install pandas_ml==0.9.0
How to install Pandas-ml on Linux/Ubuntu
On Linux Ubuntu operating system, installing Pandas ML is very easy and you can do that by using the below steps:
- We are making use of the sudo keyword to make sure the command is executed with administrator privileges.
- once you run the command, the terminal may ask you to type your administrator password before you could install this.
- Open a terminal.
- Type the command as given below and press enters to start the installation. sudo pip install pandas_ml.For Python3, you can use pip3 also as given below:
- This will install the latest version of Pandas-ml on the machine.
sudo pip3 install pandas_ml
How to install specific version of Pandas-ml on Linux/Ubuntu
If you have a specific version requirement then you can install that version by specifying the version. For this, you must know which version of Pandas-ml you want to install. The pip command to install a specific version of Pandas-ml is:
sudo pip install pandas_ml==0.9.0
For Python3, you can use pip3 also as given below:
sudo pip3 install pandas_ml==0.9.0
How to check Pandas-ml is installed successfully
After you install the Pandas-ml by using the above pip command, you can verify the installation with the below steps:
- Open your terminal.
- Launch Python
- Try to import the Pandas-ml in Python by typing
- If you have the installation done successfully then you should not see any error.
import pandas_ml as pdml
Next, you can verify the version by writing the next line:
pdml.version
This should give you the version of Pandas-ml that you just installed on your machine.