Installing Third-Party Packages Securely with pip
Python’s built-in third-party package manager is called pip. pip allows you to download third-party Python packages from the internet and use them in your programs. In this section you’ll learn how to mitigate some of the dangers inherent to pip as you use it to download packages.
Running pip
You can try running pip by executing the following:
<= | python3 -m pip --version |
If you run this command, you should see output roughly like the following:
<= | pip 20.2.3 from /home/monty/code/my-virtual-env/lib/python3.9/site-packa |
| ges/pip (python 3.9) |
Your output may be slightly different if, for example, you are using a different version of Python, pip, or have Python installed in a different location. That’s ...
Get Intuitive Python now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.