Join Caleb Smith for an in-depth discussion in this video Installing Python, part of Learning Python and Django (2015).
- The focus of this course is Django.…Since it relies on Python, I wanted to quickly ensure…that we had Python installed on your computer.…If you are watching on a Mac or Linux computer,…you probably already have it installed.…But you can double-check by following along with me.…First, we'll open a terminal program.…On Windows, you can navigate in the Start Menu…to the Run command, and type cmd, and hit enter.…To check the Python version,…I'm going to type the word python,…followed by --version,…and hit enter.…
This computer reads the version 2.7.6.…The code in this course works with any version of 2.7,…and also works with the latest version,…which, at this time, is 3.4.…If instead, you saw something like,…"python is an unrecognized command,"…then you need to install Python.…Unlike the other operating systems,…Windows does not come with Python.…If you're on Windows, I invite you to head over…to Up and Running with Python,…by Joe Marini, to see the installation process.…
Also, if you are ever on a machine…that doesn't have Python installed,…
- 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.