Today's mini-thread will be about #Python's package installer - pip! ๐๐
Let's get started!
๐๐งต
There are two primary methods for installing a package with pip
๐ Use the pip exe explicitly
๐ Use python -m
Need to install multiple packages with pip?
That's easy! You just need to separate the names with spaces:
What happens if an install fails for some reason?
Well, you end up with a bad day!
You can fix that by reinstalling the package with pip.
Here's an example of reinstalling the requests package:
Pip also supports the requirements.txt file. ๐๐ฅ
You can install everything in that file using the -r command, like this:
Did you see there's a new release of your favorite package?
You can upgrade to the latest using --upgrade or -U with pip!
Sometimes you install a package and find out that it doesn't meet your needs.
It's always sad to say goodbye, but pip makes it easy with the uninstall command:
Thanks so much for learning about #Python's package manager, pip, with me today!