In this article, we are going to learn how to install Pandas ML on your machine by using the pip install command. We will learn about how to install Pandas ML on MacOS.
1.MacOS : Install Pandas ML With Pip in Python Pre-requisites
To install Pandas ML we are going to use the 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. To make sure the pip is up to date with the latest version you can run the below command.
pip install --upgrade pip #For Python3 , you can use pip3 also as given below: pip3 install --upgrade pip
2.How to install Pandas ML on MacOS
On MacOS operating system, installing Pandas ML is very easy and you can do that by using the below steps:
- You may need to use 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. This will install the latest version of Pandas ML on the machine.
pip install pandas_ml #For Python3, you can use pip3 also as given below: pip3 install pandas_ml
3. How to install a Specific version of Pandas ML on MacOS
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
4. 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
import pandas_ml as pdml
If you have the installation done successfully then you should not see any error.
Next, you can verify the version by writing the next line:
This should give you the version of Pandas ML that you just installed on your machine.