pip is a package manager for Python. It’s basically the package manager for Python, and it allows you to install and manage libraries and dependencies that aren’t part of Python standard library.
Especially if you know one of these package managers, it’s important that you don’t think, “Oh,
pip is just exactly like, for example, npm,” because some of the package managers that you are seeing here, they fulfill way more tasks than just managing external packages.
pip can be helpful for a bunch of tasks too, but to keep things basic in this course, you only need to remember this. The
pip package manager is there for you to install, update, or uninstall external packages.
One cool thing about
pip is that it comes with your Python installation right away. So if you have the terminal open, you can check it on Windows with
pip --version, and on macOS or Linux with
python3 and the same command to see the version of
pip that’s installed on your system.
For you, both the
pip version and the Python version can be different, of course. My version of
pip seems a bit out of date. So since
pip is a Python package itself, you can use
pip to update
The beginning of the command to update
pip is the same like when you’re checking the version. It’s either
python3 -m pip, ao that means you want to do something with
pip and then you use the
install command with the
pip, you type
python3 -m pip install
--upgrade pip, and then you press Enter. And if a newer version of
pip is available, then it will be downloaded and installed. Otherwise, you’ll see a message indicating that the latest version is already installed.
03:18 This message usually says something like requirements already satisfied. Well, actually, let’s check what this message exactly says. You can press ↑ to traverse through your command history in the terminal.
Become a Member to join the conversation.