how to use pip with python on windows or *nix or macOS

Hello Friends,
                          Today, we will talk about pip package manager because i already posted many tutorials related to python script. and we need many time new modules for executing any python script. that's why in this tutorial, we will discuss about how we can install, uninstall, download, remove,list and many other functions using pip.

So, First of all, We will clear some Questions related to pip.

Q 1. what is pip?

 Ans. As Wikipedia : pip is a package management system used to install and manage software packages written in Python. Many packages can be found in the Python Package Index (PyPI).
Python 2.7.9 and later (on the python2 series), and Python 3.4 and later include pip (pip3 for Python 3) by default.
pip is a recursive acronym that can stand for either "Pip Installs Packages" or "Pip Installs Python". or 

In Simple Word, Pip is like a Module Manage for python. used for installing, uninstalling and other things.

Q 2.  Do You Need To Install pip?

Ans. pip is already installed if you're using Python 2 >=2.7.9 or Python 3 >=3.4. 
If Not Then, For Installing Pip securely download
Then run the following:
Or If Pip Already Installed But Outdated then

On Linux or macOS:
pip install -U pip
On Windows :
python -m pip install -U pip
Now, We Are Ready To Move Our Next Step.

(Note:- Internet Connection required)

1. For Installing Any New Module.
  $ pip install SomePackage # latest version
  $ pip install SomePackage==1.0.4 # specific version
  $ pip install 'SomePackage>=1.0.4' # minimum version

or if You Have package on your local drive then

  $ pip install path/of/package.whl 

Here, In this Example, I am Installing bs4 module.

 2. For Uninstalling 

  $ pip uninstall package/name
   Here, In this Example, I am uninstalling bs4 module.

3. For Downloading Package On Your local drive

   $ pip download package/name

Here, In this Example, I am using bs4 module.

4. For Searching Any Module

  $ pip search module/name/here

5. For Checking Any Broken Dependence

   $ pip check

6. For Checking Installed Module.

  $ pip list 

7. Creating List Of Installed Packages.

$ pip list  >> list.txt

8. For Installing All packages available in list

$ pip install -r package-list.txt

9. For Help
  $ pip help


if You Got any problem then contact us.

thanks for visiting my blog.

For any question or Suggestion or help
Or post Comment.
please feel free to contact me.

Share this

Related Posts

Next Post »