Saturday, December 22, 2018

How to Install, Update or Uninstall Libraries in Python ?

Hello World,
                               Here everyone talking about Tensorflow, PyTorch or Matplotlib and many more Python Libraries for Artificial Intelligence, Machine Learning or Deep Learning etc. I asked many Python developers How to Install these libraries in Python ? How i can start learning these thing ? But no one told me the exactly way to install these libraries in my PC.

No-one give me the proper answer to How to install TensorFlow, PyTorch, Matplotlib ?.

When i asked to someone about packages who is already working on Python. Do you know ?, what was the alswer ? do wanna know ?.

Me :  Hi Buddy! How to Install TensorFlow in my PC ?, I want to work on Artificial Intelligence or Machine Learning. So How to Install these Libraries ?,
He :  Ahm, Hm, Ok, first of all you should install the PIP.
Me : What is PIP ?.
He : PIP is a library which is pre-installed with your Python, If you use the Python 2.4 or Greater version.
Me : Ok, Than What about TensorFlow, PyTorch or Other Artificial Intelligence or Machine Learning libraries ?.
He : Ahm, Hm, Good question ?, I am little bit busy right now, may we talk latter ?.
Me : It's Ok, ( Chal BC, Chutiya, Kuch Ni aata saale ko Chutiya banata h saala ), But from inside #Hahahaha.

Than I asked the same thing to one of my Best Friend "Ok Google", i did the same thing with my Best Friend, But he did not reply same thing as above #Hahahaha, But he also break my Heart, I break my 12 year Friendship with him, and make or Follow my own way.

Than I find the PIP, or TensorFlow, PyTourch etc in my Python, Suddenly I come up with the idea to install these libraries, Do you want to know too ?, So let's see some useful command.

Some Useful Command for Python :

Open Command Prompt and Type the Following Command and hit the Enter.

To Check Python is installed or Not ?.


Python or python

How to Upgrade PIP on Window ?.


python -m pip install -U pip

How to Upgrade pip on Mac or Linux ?.


pip install -U pip

How to manage Packages ?.

List of all Installed Packages.


pip list

To list of all Outdated packages.


pip list -- outdated

To see the details about an installed packages.


pip show package-name

To Install the new Packages.


pip install package-name

To Upgrade an Outdated Packages.


pip install package-name -- upgrade

To Completely Re-Install an Package.


pip install package-name --upgrade --force-reinstall

To Completely Uninstall or Rid of an Package.


pip uninstall package-name

If you want to know more about the commands for managing the packages, Let me know in the comment box below. 

At last Thanks for reading...
, , , , , , ,

3 comments: