Join Caleb Smith for an in-depth discussion in this video Setting up pip, part of Learning Python and Django.
- pip is the Python Package Installer, or,…because of the order of the initials,…I like to call it the Python Installer of Packages.…It is responsible for downloading and installing…Python libraries and tools, such as Django.…To get started, we'll first install pip…and then use it to install Django.…If you have installed Python 279 or newer, or…Python 3.4 or newer, then you already have pip installed.…To test if you have pip installed,…navigate to a command prompt or terminal,…and type "pip --version" and hit Enter.…
If, like me, the command is not recognized,…follow along as we install pip.…Otherwise, you can skip installing pip…and just install Django at the end of this video.…If you are using a Linux distribution,…you can obtain pip through the system package manager,…such as Apt or Yum, using the package named Python-pip.…If you don't already have pip from the Python installation,…navigate with me to pip.pypa.io.…From here, we'll follow the link for "Install pip"…under the Installation section.…
Now, we click the "get-pip.py" link.…
- Creating a new Django project
- Defining Django models and fields
- Querying data with the Django ORM
- Building views and templates
Skill Level Intermediate
Q: pip says it was installed correctly, and I've updated the PATH variable as shown, but the pip --version command isn't working. Why?
A: Depending on your computer's setup, you'll need to restart your terminal/command prompt before the additions you've made to the PATH variable are respected. With some setups, even that won't be enough, and you may need to restart the entire machine before you are able to use the pip command directly.