How to install Python libraries

1 min readFundamentalsGetting Started
7-Day Challenge

Land Your First Data Science Job

A proven roadmap to prepare for $75K+ entry-level data roles. Perfect for Data Scientist ready to level up their career.

Build portfolios that hiring managers love
Master the Python and SQL essentials to be industry-ready
Practice with real interview questions from tech companies
Access to the $100k/y Data Scientist Cheatsheet

Join thousands of developers who transformed their careers through our challenge. Unsubscribe anytime.

Libraries are one of the best way to share your scripts to the world and the world to use your python scripts.

Libraries are an aggregation of methods / scripts that developers have made along the years that serves a specific purpose.

Example:

  • Requests : Allow user to call APIs
  • Pandas : Allow user to manipulate data in the shape of excel sheet

If you want to use Python Libraries you will need a tool that is called a package manager.

The package manager is the tool that will download, install, and manage all the libraries for you so you don't have to bother managing it yourself.

In Python the libraries manager is called Pip, and we need to install it.

Installing Pip

Installation - pip documentation v22.2.2

Once you have pip install you can install any libraries with Python.

How to install a library

Now that pip is installed you can install any library that is referenced in the Python Package Manager.

pip install <library>
pip install pandas
7-Day Challenge

Land Your First Data Science Job

A proven roadmap to prepare for $75K+ entry-level data roles. Perfect for Data Scientist ready to level up their career.

Build portfolios that hiring managers love
Master the Python and SQL essentials to be industry-ready
Practice with real interview questions from tech companies
Access to the $100k/y Data Scientist Cheatsheet

Join thousands of developers who transformed their careers through our challenge. Unsubscribe anytime.

Free Newsletter

Master Data Science in Days, Not Months 🚀

Skip the theoretical rabbit holes. Get practical data science skills delivered in bite-sized lessons – Approach used by real data scientist. Not bookworms. 📚

Weekly simple and practical lessons
Access to ready to use code examples
Skip the math, focus on results
Learn while drinking your coffee

By subscribing, you agree to receive our newsletter. You can unsubscribe at any time.