This commit is contained in:
Benjamin Qi 2020-07-14 16:17:41 -04:00
commit b2f9aa2f6c

View file

@ -7,11 +7,11 @@ description: Options for running Python both online and locally.
## Running Python locally
Download Python through [the official website](https://python.org).
Download Python through [the official website](https://python.org). On Windows and Mac, you can download executable files directly; on Linux, you must either download the Python source code and compile from source, or obtain Python through your package manager.
On Windows and Mac, you can download executable files directly; on Linux, you must either download the Python source code and compile from source, or obtain Python through your package manager.
Make sure that you are using the correct version of Python. Python 2 is quite different from Python 3 (but parts of the version number beyond 2. or 3. does not matter much). We generally recommend newcomers to use Python 3, but if you are used to programming in Python 2, that is OK too.
Make sure that you are using the correct version of Python. Python 2 is quite different from Python 3 (but parts of the version number beyond 2. or 3. does not matter much). **This can matter when using the command line to run Python;** sometimes, `python3` must be used instead of `python` in order to run Python 3. Try both commands, and pay attention to the version that Python prints, to determine if this is the case on your system. For example, running the following in Terminal on my computer produces:
**The Python version can matter when using the command line to run Python;** sometimes, `python3` must be used instead of `python` in order to run Python 3. Try both commands, and pay attention to the version that Python prints, to determine if this is the case on your system. For example, running the following in Terminal on my computer produces:
```
python --version # prints Python 2.7.13