|
2 | 2 |
|
3 | 3 | Hello! |
4 | 4 |
|
5 | | -This document provides a walkthrough to set up a Python development environment for [CS41](https://stanfordpython.com) on macOS. Alternate versions of this guide exist for [Linux](https://github.com/stanfordpython/python-handouts/blob/master/installing-python-linux.md) and [Windows](https://github.com/stanfordpython/python-handouts/blob/master/installing-python-windows.md) development. |
| 5 | +This document provides a walkthrough to set up a Python development environment for CS 41 on macOS. Alternate versions of this guide exist for [Linux](https://github.com/stanfordpython/python-handouts/blob/master/installing-python-linux.md) and [Windows](https://github.com/stanfordpython/python-handouts/blob/master/installing-python-windows.md) development. |
6 | 6 |
|
7 | 7 | ## Overview |
8 | 8 |
|
@@ -119,7 +119,7 @@ coopermj$ source ~/cs41-env/bin/activate |
119 | 119 |
|
120 | 120 | *Note: If your shell is `tcsh` or `csh`, you will have to run `source ~/cs41-env/bin/activate.csh` instead. If your shell is `fish`, you will have to run `. ~/cs41-env/bin/activate.fish` instead.* |
121 | 121 |
|
122 | | -Observe that our command prompt, which previously was `psarin$`, now is `(cs41-env) psarin$`. This is one method by which you can see whether a virtual environment is activated. |
| 122 | +Observe that our command prompt, which previously was `coopermj$`, now is `(cs41-env) coopermj$`. This is one method by which you can see whether a virtual environment is activated. |
123 | 123 |
|
124 | 124 | ### Deactivating a virtual environment |
125 | 125 |
|
@@ -218,9 +218,9 @@ Importantly, you should now have access to `ipython`, an interactive Python inte |
218 | 218 |
|
219 | 219 | ``` |
220 | 220 | (cs41-env)$ ipython |
221 | | -Python 3.8.0 (v3.8.0:fa919fdf25, Oct 14 2019, 10:23:27) |
| 221 | +Python 3.9.2 (v3.9.2:1a79785e3e, Feb 19 2021, 09:06:10) |
222 | 222 | Type 'copyright', 'credits' or 'license' for more information |
223 | | -IPython 7.9.0 -- An enhanced Interactive Python. Type '?' for help. |
| 223 | +IPython 7.22.0 -- An enhanced Interactive Python. Type '?' for help. |
224 | 224 |
|
225 | 225 | In [1]: |
226 | 226 | ``` |
@@ -260,9 +260,9 @@ In this course, we always assume that you are operating in an active virtual env |
260 | 260 | If you want to automatically enable the `cs41-env` virtual environment every time you start a new interactive session, you can add a command to your shell's startup script. In most cases, this will be `~/.bash_profile` or `~/.bashrc`, which are different but in ways that are not important to us right now. Run: |
261 | 261 |
|
262 | 262 | ``` |
263 | | -psarin$ echo "# Activate virtual environment for CS41." >> ~/.bash_profile |
264 | | -psarin$ echo "source ~/cs41-env/bin/activate" >> ~/.bash_profile |
265 | | -psarin$ tail -n 2 ~/.bash_profile |
| 263 | +coopermj$ echo "# Activate virtual environment for CS41." >> ~/.bash_profile |
| 264 | +coopermj$ echo "source ~/cs41-env/bin/activate" >> ~/.bash_profile |
| 265 | +coopermj$ tail -n 2 ~/.bash_profile |
266 | 266 | # Activate virtual environment for CS41. |
267 | 267 | source ~/cs41-env/bin/activate |
268 | 268 | ``` |
|
0 commit comments