Locked lesson.
About this lesson
openpyxl is the Python library that we'll use to connect our Python code to Excel.
Exercise files
Download this lesson’s related exercise files.
12 - Pip Install openpyxl and Import.docx57 KB 12 - Pip Install openpyxl and Import SOLUTION.docx
55.5 KB
Quick reference
Pip Install openpyxl and import
openpyxl is the Python library that we'll use to connect our Python code to Excel.
When to use
Use this anytime you need to access an Excel spreadsheet in your Python code.
Instructions
The openpyxl documentation can be found here: https://pypi.org/project/openpyxl
To install, go to your terminal and make sure your virtual environment is turned on, then issue this command:
pip install openpyxl
Hints & tips
- pypi.org/project/openpyxl
- pip install openpyxl
Lesson notes are only available for subscribers.