Jun 5, 2025
|
1 min
|
7.7k views
How to Install a Python Package with pip in Positron (Your First Library in 2 Minutes)
To install a Python library, open a terminal and run pip install followed by the package name. pip is Python’s package manager: it downloads the library and everything it depends on from the Python Package Index, so one command is usually all it takes. To see what is already installed, run pip freeze, which lists every package with its version number. Saving that output to a file called requirements.txt is how you reproduce the same environment somewhere else.
What you will learn
Why installing a library is normally the first thing you do in a new project Where to find the terminal in Positron How to run pip install, and what happens while it runs What dependencies are, and why pip fetches them for you What the Python Package Index is How pip freeze lists what you have, with versions What requirements.txt is for, and why you will see it in every Python project Chapters 0:00 Why your first step is installing a library 0:18 Opening the terminal and running pip install 0:36 What pip does: dependencies and the Python Package Index 0:54 pip freeze: seeing what is installed 1:12 requirements.txt, and reproducing your environment
Learn more Positron: https://positron.posit.co Installing Python packages in Positron: https://positron.posit.co/interpreters.html Posit Package Manager: https://posit.co/products/enterprise/package-manager/ PyDyTuesday, the library used here: https://pypi.org/project/pydytuesday/
Positron
Install Python Packages
How to Install a Python Package
Pip Install
Python Package Manager
Python Library
Pip Freeze
Requirements Txt
Python Dependencies
Pypi
Positron Python
Python for Beginners
First Python Project
Posit