Skip to content

Triangle Python Users Group: TriPython (formerly TriZPUG)

Sections
Personal tools
You are here: Home » Boot Camps » Seattle PyCamp™ 2013 » What To Do Before PyCamp

What To Do Before PyCamp

Document Actions
Following these instructions will prepare you for PyCamp. The hardest part of PyCamp is the non-Python part, where we have to install a few programs and change some settings in our operating systems to use the programs properly. Please set aside some time and accomplish these steps prior to coming to PyCamp so that you will benefit the most from being at PyCamp. You will be glad you did. Choose your operating system below as the instructions are different for Windows, OSX, and Linux. However, the instructions do result in all three platforms working as close to the same in class as is currently possible. And that will help the class go much more smoothly.

Windows • OSX • Linux

Problems? Please don't hesitate to ask for help from pycamp@trizpug.org.

Windows

Special Windows Note

Remember that the requirements for class do not include Windows 8. If you bring Windows 8 to class, you may not receive any support for these installation instructions. Windows 7 and Vista are supported in class. Also remember that you must have an accessible administrative account on your Windows laptop. If you bring Windows to class without administrative access on your login id, you may not receive any support for these installation instructions. If you do not have a laptop with Windows 7 or Vista with an accessible administrative account, you should make arrangements to get one before class.

Install Anaconda

Anaconda is a free Python "super distribution." It includes the standard Python distribution from python.org plus many other tools which can be troublesome to install on their own. You will use some of these tools in class. Anaconda is also safe to install if you have other versions of Python installed on you system.

  1. Go to http://store.continuum.io/cshop/anaconda/.
  2. Click on the "Download" button for Anaconda."
  3. Fill in your email address twice, unclick the "keep me up to date" checkbox unless you want spam, and then click "Submit."
  4. Find the "Windows installers" section of the page.
  5. Download the installer appropriate to your system (32 or 64 bit). If you are not sure which is appropriate to your system, download the 32 bit version.
  6. Locate the installer where you downloaded it to your machine and run it.
  7. If an "Open File - Security Warning" dialog appears asking "Do you want to run this file?," click "Run."
  8. Click "Next" to continue when the installer dialog appears."
  9. Click "I Agree" when the license agreement appears.
  10. Click "Next" when the Destination Folder appears as C:\Anaconda.
  11. Leave "Add Anaconda to the System Path" checked and leave "Register Anaconda as the default Python version of the system" unchecked on the next dialog. Click "Install."
  12. The installer will take several minutes to extract and copy files into place. When it is finished, click on "Finish" in the installer dialog.
  13. Click on the Windows "Start" menu.
  14. Click on "All Programs."
  15. Click on "Accessories."
  16. Click on "Command Prompt." We will be using the command prompt a lot at PyCamp. You may want to pin it to your Windows task bar and/or start menu.
  17. A command prompt window appears.
  18. Type python in all lowercase at the command prompt and press the enter key.
  19. You are now in a Python interpreter.
  20. At the ">>>" Python prompt, type 2 + 3 and press the enter key. You will see the answer "5."
  21. Hold down the control key and type the letter z to exit the Python interpreter.
  22. At the command prompt, type set PATH and press the enter key. PATH is all uppercase. You will see a list of directories separated by semicolons. The PATH is the list of directories Windows searches for programs. When you enter the command "python," Windows looks at each of the directories in the PATH in order until it finds the python command. You should see the paths for C:\Anaconda; and C:\Anaconda\Scripts; listed. This is just so you know where your Python is.
  23. Type exit and press the enter key to exit the command terminal.

Install Sublime Text 2

Sublime is a very popular advanced text editor which works the same on all platforms. It has special handling for Python scripts. We will use it in class to edit Python scripts.

  1. Go to http://www.sublimetext.com/.
  2. Click on "Download."
  3. Click on "Windows" or "Windows 64 bit" as appropriate for your machine. If you aren't sure, just choose "Windows." Do not click on "portable."
  4. When the "Opening Sublime Text 2.0.2 Setup.exe" dialog appears, click "Save File."
  5. After the download completes, open your Downloads folder.
  6. Double click on Sublime Text 2.0.2 Setup.exe.
  7. If an "Open File - Security Warning" dialog appears asking "Do you want to run this file?," click "Run."
  8. When the "Welcome to the Sublime Text 2 Setup Wizard" appears, click "Next."
  9. On the "Select Destination Location" panel, click "Next" to accept the default.
  10. On the "Select Additional Tasks" panel, select "Add to explorer context menu" and click "Next."
  11. On the "Ready to Install" panel, click "Install."
  12. When the installation completes, click "Finish."
  13. Click on the Windows "Start" menu.
  14. Click on the menu selection for "Sublime Text 2." In a few seconds, a Sublime editor window appears."
  15. Close Sublime by clicking on "File" in the editor menu and then clicking on "Exit."

Create Your Virtual Python Environment

  1. Click on the Windows "Start" menu.
  2. Click on "All Programs."
  3. Click on "Accessories."
  4. Click on "Command Prompt." We will be using the command prompt a lot at PyCamp. You may want to pin it to your Windows task bar and/or start menu.
  5. A command prompt window appears.
  6. At the command prompt, type cd %HOMEPATH% and press the enter key. You may cut and paste that command if that helps you.
  7. At the command prompt, type conda create -p %HOMEPATH%\Desktop\pycamp anaconda and press the enter key. You may cut and paste that command if that helps you.
  8. You will see a list of packages which the Anaconda package manager will create for you in a new python virtual environment. At the "Proceed ([y]/n)?" prompt, type the letter y and press the enter key.
  9. Anaconda will spend several minutes putting packages in place before returning to the command prompt.
  10. At the command prompt, type notepad act.bat and press the enter key.
  11. A dialog appears which says "Cannot find the act.bat file. Do you want to create a new file?" Click "Yes."
  12. Type the following four lines exactly as shown into the Notepad window. You may cut and paste them if that helps you:
    @echo off
    set PATH="%ProgramFiles%\Sublime Text 2";%PATH%
    set PATH="%ProgramFiles(x86)%\Sublime Text 2";%PATH%
    set PATH="%HOMEPATH%\Desktop\pycamp";%PATH%
    set PATH="%HOMEPATH%\Desktop\pycamp\Scripts";%PATH%
    set PATH="%HOMEPATH%\Desktop\pycamp\Tools\Scripts";%PATH%
    
    It is very important to use Notepad for this step. Other editors may insert Unix line endings into the act.bat file, causing the batch file to fail when run.
  13. Hold down the control key and type the letter s to save act.bat.
  14. Click on the "X" in the top right corner to close notepad.
  15. noca
  16. Back at the command prompt, type act.bat and press the enter key.
  17. The act.bat batch file does two things for you. It activates your virtual private Python. And it put sublime_text.exe in your PATH. Use act.bat each time you open a new command prompt in class.
  18. Try Sublime after running act.bat by typing sublime_text act.bat at the command prompt. In case you can't see it, there is an under-bar, not a space, between "sublime" and "text" in that command. You will type more under-bars that you've ever typed before in class.
  19. After a couple of seconds, a Sublime text editor window appears with the same act.bat file you edited in notepad, except it looks much nicer in Sublime. Different parts of the command are colorized. It does the same thing for Python scripts, as you will see in class.
  20. Close Sublime by clicking on "File" in the editor menu and then clicking on "Exit."
  21. The next time you open Sublime, it will remember which files you were editing previously and open them. Sublime allows you to edit several files at once in tabs.
  22. Optional: the following are steps you may undertake to may starting Sublime easier.
  23. Click on the Windows "Start" menu.
  24. Click on "All Programs."
  25. Click on "Accessories."
  26. Right click on "Command Prompt."
  27. Select "Run as administrator" from the menu. If you do not have "Run as administrator" listed in the menu, you will not be able to complete this optional part of the instructions.
  28. A command prompt window appears.
  29. At the command prompt, type mklink "%ProgramFiles%\Sublime Text 2\subl.exe" "%ProgramFiles%\Sublime Text 2\sublime_text.exe" and press the enter key. You may cut and paste that command if that helps you. This command may fail with the message "The system cannot find the path specified." If the command does not fail, but instead tells you that a symbolic link has been created, skip the next step and move on to the following step.
  30. At the command prompt, type mklink "%ProgramFiles(x86)%\Sublime Text 2\subl.exe" "%ProgramFiles(x86)%\Sublime Text 2\sublime_text.exe" and press the enter key. You may cut and paste that command if that helps you. You should see a message telling you that a symbolic link has been created.
  31. Close the administrative command prompt by typing exit and pressing the enter key.
  32. Open a normal command prompt (without running as administrator) as you did previously in these instructions.
  33. At the command prompt, type act.bat and press the enter key.
  34. At the command prompt, type subl and press the enter key. In a few seconds a Sublime text editor window will appear. You can now start Sublime simply by typing subl instead of sublime_text.
  35. Close Sublime by clicking on "File" in the editor menu and then clicking on "Exit."
  36. Close the command prompt by typing exit and pressing the enter key at the command prompt.

OSX

Install Xcode

Many Python tools require Xcode and Apple Command Line Tools. These are free from Apple's App Store.

  1. Open App Store.
  2. Type Xcode in the App Store's search box.
  3. Click on Xcode's "FREE" icon.
  4. After Xcode installs, an Xcode icon will appear on your Launchpad. Click on it.
  5. On the Xcode menu at the top of your screen, click on "Xcode."
  6. Click on "Preferences." Click on "Downloads" on the Preferences menu.
  7. Click on the "install" icon for Command Line Tools.
  8. When the installation is complete, hold down the command key and type the letter q to close Xcode.

Install Iterm 2

iTerm2 is an advanced command terminal for OSX. It is much better than the command terminal which comes with OSX. It supports tabbed sessions and many other useful features. You will use it to run Python in class.

  1. Go to http://www.iterm2.com/.
  2. Click on "Download." Click on iTerm2_v1_0_0.zip.
  3. On the next page, click on iTerm2_v1_0_0.zip again.
  4. When the "Opening iTerm2_v1_0_0.zip" dialog appears, make sure "Save file" is clicked and then click "OK."
  5. After the download completes, open your Downloads folder.
  6. Double click on iTerm2_v1_0_0.zip.
  7. The zip expands leaving a iTerm.app in your Downloads folder. Drag and drop iTerm.app into your Applications folder.
  8. Drag and drop iTerm.app from your Applications folder to your Dock.

Install Anaconda

Anaconda is a free Python "super distribution." It includes the standard Python distribution from python.org plus many other tools which can be troublesome to install on their own. You will use some of these tools in class. Anaconda is also safe to install if you have other versions of Python installed on you system.

  1. Go to http://store.continuum.io/cshop/anaconda/.
  2. Click on the "Download" button for Anaconda."
  3. Fill in your email address twice, unclick the "keep me up to date" checkbox unless you want spam, and then click "Submit."
  4. Find the "MacOSX installers" section of the page.
  5. If you have OSX version 10.7 or above, download the GUI installer. If you have OSX version 10.6, download the bash installer.
  6. If you downloaded the GUI installer:
    1. Find the package installer you downloaded and double click on it.
    2. When the installer dialog appears, click "Continue."
    3. Click "Continue" when the "Read Me" dialog appears.
    4. Click "Continue" and then "Agree" when the license agreement appears.
    5. When the Select Destination dialog appears, click on "Install for me only" and then click "Continue."
    6. Click on "Install" on the next dialog. The installer will take several minutes to extract and copy files into place.
    7. When the installation success dialog appears, click on "Close."
  7. If you downloaded the bash installer:
    1. Click on the iTerm2 icon on your Dock.
    2. At the terminal prompt, type cd ~/Downloads and press the enter key. You may cut and paste that command if that helps you.
    3. At the terminal prompt, type bash Anaconda-1.6.1-MacOSX-x86_64.sh and press the enter key. You may cut and paste that command if that helps you.
    4. When the script says "Press Enter to continue," press the enter key.
    5. You may scroll in one direction by one line at a time through the license agreement by pressing or holding the enter key. When you get tired of reading, you may type the letter q to quit reading. If you scroll all the way to the end by holding down the enter key for a long time, you will likely need to run the script again unless you are very, very good at knowing where to stop.
    6. Type yes to accept the click-through license agreement.
    7. Press the enter key to install Anaconda in your home directory.
    8. The installer will take several minutes to extract and copy files into place.
    9. When the installer asks if you want to prepend the Anaconda install location to your PATH, type yes and press the enter key.
    10. Type exit and press the enter key to close the command terminal.
  8. Click on the iTerm2 icon on your Dock.
  9. A command prompt window appears. We will be using the command prompt a lot at PyCamp.
  10. Type python in all lowercase at the command prompt and press the enter key.
  11. You are now in a Python interpreter.
  12. At the ">>>" Python prompt, type 2 + 3 and press the enter key. You will see the answer "5."
  13. Hold down the control key and type the letter d to exit the Python interpreter.
  14. At the command prompt, type echo $PATH and press the enter key. PATH is all uppercase. You will see a list of directories separated by colons. The PATH is the list of directories Windows searches for programs. When you enter the command "python," Windows looks at each of the directories in the PATH in order until it finds the python command. You should see the path for $HOME/anaconda/bin listed where $HOME is the path to your home directory. This is just so you know where your Python is.
  15. Type exit and press the enter key to exit the command terminal.

Install Sublime Text 2

Sublime is a very popular advanced text editor which works the same on all platforms. It has special handling for Python scripts. We will use it in class to edit Python scripts.

  1. Go to http://www.sublimetext.com/.
  2. Click on "Download."
  3. Click on "OS X." Don't worry; it also works on OSX 10.8.
  4. When the "Opening Sublime Text 2.0.2.dmg" dialog appears, make sure "Save file" is clicked and then click "OK."
  5. After the download completes, open your Downloads folder.
  6. Double click on Sublime Text 2.0.2.dmg.
  7. A Sublime Test 2 folder appears. Drag and drop the Sublime Text 2.app icon to the Applications icon in the folder.
  8. After Sublime Text 2.app finishes copying to Applications, close the Sublime Text 2 folder.
  9. Look on your desktop. Control-click on the Sublime Text 2 disk image icon. Click on "Eject Sublime Text 2."
  10. Sublime can start from an icon on your Launchpad. However, we want to be able to start it from a command line.
  11. Click on the iTerm2 icon on your Dock.
  12. At the command prompt, type cd ~ and press the enter key. You may cut and paste that command if that helps you.
  13. At the command prompt, type mkdir bin and press the enter key. You may cut and paste that command if that helps you.
  14. At the command prompt, type ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl and press the enter key. You may cut and paste that command if that helps you.
  15. At the command prompt, type bin/subl .profile and press the enter key. You may cut and paste that command if that helps you.
  16. A dialog may appear which says "Sublime Text 2 is an application downloaded from the Internet. Are your sure you want to open it?" Click "Open."
  17. After a couple of seconds, you will be looking at a Sublime editor window, You are editing a file called ".profile." The dot in front of the name ".profile" means it is a "hidden" file. It is a file of commands which execute every time you start a new command terminal.
  18. The file may already have some lines of commands in it. It may have many. However, if the .profile file is empty, hold down the command key and press the letter w to close the file. Do not save the file. Return to step 15, but type bin/subl .bash_profile and press enter instead of bin/subl .profile. Explanation: some instances of OSX use the .bash_profile configuration file instead of .profile.
  19. You need to add this command: export PATH=~/bin:$PATH on its own line in the Sublime editor window at the very end of the file. Blank lines in the file don't matter. So if you have blank lines around the line you add, that's OK.
  20. After adding the command to .profile (or .bash_profile is your system has no .profile), save the file by holding down the command key and type the letter s.
  21. Hold down the command key and type the letter q to close Sublime.
  22. In your command window, hold down the command key and type the letter t to open a command prompt in a new tab.
  23. At the new command prompt, type subl and press the enter key. Sublime opens with the last file you edited (.profile) in the Sublime editor window. Sublime remembers what files you were editing from session to session.
  24. In the Sublime editor window, hold down the command key and type the letter q to close Sublime.
  25. In the iTerm2 window, hold down the command key and type the letter q to close all the tabbed terminal sessions. Click "OK" to confirm.

Create Your Virtual Python Environment

  1. Click on the iTerm2 icon on your Dock.
  2. At the command prompt, type cd ~ and press the enter key. You may cut and paste that command if that helps you.
  3. At the command prompt, type conda create -p $HOME/Desktop/pycamp anaconda and press the enter key. You may cut and paste that command if that helps you.
  4. You will see a list of packages which the Anaconda package manager will create for you in a new python virtual environment. At the "Proceed ([y]/n)?" prompt, type the letter y and press the enter key.
  5. Anaconda will spend several minutes putting packages in place before returning to the command prompt.
  6. At the command prompt, type subl to open Sublime to edit the command terminal profile you just edited, either .profile or .bash_profile.
  7. In the Sublime editor window for the command terminal profile, add source activate $HOME/Desktop/pycamp as a new last line in the file.
  8. Save the file by holding down the command key and type the letter s.
  9. Hold down the command key and type the letter q to close Sublime.
  10. At your command prompt, hold down the command key and type the letter t to open a command prompt in a new tab.
  11. Your new command prompt will be modified to show which virtual python environment you have activated. Entering commands like python will now search the bin directory of your virtual python environment first.
  12. Type python in all lowercase at the command prompt and press the enter key.
  13. You are now in a Python interpreter.
  14. At the ">>>" Python prompt, type 2 + 3 and press the enter key. You will see the answer "5."
  15. Hold down the control key and type the letter d to exit the Python interpreter.
  16. At the command prompt, type echo $PATH and press the enter key. PATH is all uppercase. In the list of paths, you should see the path for $HOME/Desktop/pycamp/bin listed where $HOME is the path to your home directory. This is just so you know where your virtual python environment is.
  17. At the command prompt, type source deactivate and press the enter key. You will see the command prompt return to normal after a message about your virtual python environment being discarded from your PATH.
  18. At the command prompt, type echo $PATH and press the enter key. PATH is all uppercase. In the list of paths, you should see your virtual python environment is not in your PATH for the rest of this command session. Each command session has its own PATH. If you start a new command prompt, your command terminal profile will activate your virtual python environment by default in your new command session.
  19. Type exit and press the enter key to exit the command terminal.

Linux

Install Anaconda

Anaconda is a free Python "super distribution." It includes the standard Python distribution from python.org plus many other tools which can be troublesome to install on their own. You will use some of these tools in class. Anaconda is also safe to install if you have other versions of Python installed on you system.

  1. Go to http://store.continuum.io/cshop/anaconda/.
  2. Click on the "Download" button for Anaconda."
  3. Fill in your email address twice, unclick the "keep me up to date" checkbox unless you want spam, and then click "Submit."
  4. Find the "Linux installers" section of the page.
  5. Download the installer appropriate to your system (32 or 64 bit). If you are not sure which is appropriate to your system, download the 32 bit version.
  6. After the download completes, open a command terminal. If you use Linux, you surely know how to open a command terminal. But if not, you can find it either under your Applications/System Tools menu or by right clicking your desktop and selecting "Open in Terminal."
  7. At the terminal prompt, type cd ~/Downloads and press the enter key. You may cut and paste that command if that helps you.
  8. At the terminal prompt, type bash Anaconda-1.6.1-Linux-x86.sh or bash Anaconda-1.6.1-Linux-x86_64.sh depending on which installer you downloaded and press the enter key. You may cut and paste that command if that helps you.
  9. When the script says "Press Enter to continue," press the enter key.
  10. You may scroll in one direction by one line at a time through the license agreement by pressing or holding the enter key. When you get tired of reading, you may type the letter q to quit reading. If you scroll all the way to the end by holding down the enter key for a long time, you will likely need to run the script again unless you are very, very good at knowing where to stop.
  11. Type yes to accept the click-through license agreement.
  12. Press the enter key to install Anaconda in your home directory.
  13. The installer will take several minutes to extract and copy files into place.
  14. When the installer asks if you want to prepend the Anaconda install location to your PATH, type yes and press the enter key.
  15. Open a new command terminal. You should be able to hold down the control and shift keys while typing the letter t to do this.
  16. Type python in all lowercase at the command prompt and press the enter key.
  17. You are now in a Python interpreter.
  18. At the ">>>" Python prompt, type 2 + 3 and press the enter key. You will see the answer "5."
  19. Hold down the control key and type the letter d to exit the Python interpreter.
  20. At the command prompt, type echo $PATH and press the enter key. PATH is all uppercase. You will see a list of directories separated by colons. The PATH is the list of directories Windows searches for programs. When you enter the command "python," Windows looks at each of the directories in the PATH in order until it finds the python command. You should see the path for $HOME/anaconda/bin listed where $HOME is the path to your home directory. This is just so you know where your Python is.
  21. Type exit and press the enter key to exit the command terminal.

Install Sublime Text 2

Sublime is a very popular advanced text editor which works the same on all platforms. It has special handling for Python scripts. We will use it in class to edit Python scripts.

  1. Go to http://www.sublimetext.com/.
  2. Click on "Download."
  3. Click on "Linux 32 bit."
  4. When the "Opening Sublime Text 2.0.2.tar.bz" dialog appears, make sure "Save file" is clicked and then click "OK."
  5. After the download completes, open a command terminal.
  6. At the terminal prompt, type cd ~/Downloads and press the enter key. You may cut and paste that command if that helps you.
  7. At the command prompt, type tar -xjvf Sublime\ Text\ 2.0.2.tar.bz2 and press the enter key. You may cut and paste that command if that helps you.
  8. At the terminal prompt, type cd ~ and press the enter key. You may cut and paste that command if that helps you.
  9. At the command prompt, type mkdir bin and press the enter key. You may cut and paste that command if that helps you.
  10. At the command prompt, type ln -s $HOME/Downloads/Sublime\ Text\ 2/sublime_text ~/bin/sublime and press the enter key. You may cut and paste that command if that helps you.
  11. At the command prompt, type bin/sublime .bashrc and press the enter key. You may cut and paste that command if that helps you.
  12. After a couple of seconds, you will be looking at a Sublime editor window, You are editing a file called ".bashrc" and the dot in front of the name ".bashrc" means it is a "hidden" file. It is a file of commands which execute every time you start a new command terminal.
  13. The file may already have some lines of commands in it. It may have many. However, if the .bashrc file is empty, hold down the command key and press the letter w to close the file. Do not save the file. Return to step 11, but type bin/sublime .profile and press enter instead of bin/sublime .bashrc. Explanation: some distributions of Linux use the .profile configuration file instead of .bashrc.
  14. You need to add this command: export PATH=~/bin:$PATH on its own line in the Sublime editor window at the very end of the file. Blank lines in the file don't matter. So if you have blank lines around the line you add, that's OK.
  15. After adding the command to .bashrc (or .profile is your system has no .bashrc), save the file by holding down the control key and type the letter s.
  16. Close Sublime by clicking on "File" in the editor menu and then clicking on "Quit."
  17. In your command window, hold down the shift and control keys and type the letter t to open a command prompt in a new tab.
  18. At the new command prompt, type sublime and press the enter key. Sublime opens with the last file you edited (.bashrc) in the Sublime editor window. Sublime remembers what files you were editing from session to session.
  19. Close Sublime by clicking on "File" in the editor menu and then clicking on "Quit."
  20. At the command prompt, type sublime bin/subl and press the enter key. You may cut and paste that command if that helps you.
  21. Type the following line exactly as shown into the Sublime editor window for bin/subl. You may cut and paste them if that helps you:
    nohup sublime $@ &> /dev/null &
    
  22. Hold down the control key and type the letter s to save bin/subl.
  23. Close Sublime by clicking on "File" in the editor menu and then clicking on "Quit."
  24. At the new command prompt, type chmod +x bin/subl and press the enter key.
  25. At the new command prompt, type subl and press the enter key. Sublime now opens without holding up a command terminal session. The command terminal can be closed and Sublime will still be running.
  26. In the terminal window, click on the "X" in the top right corner to close all the tabbed terminal sessions.
  27. Close Sublime by clicking on "File" in the editor menu and then clicking on "Quit."

Create Your Virtual Python Environment

  1. Open a command terminal.
  2. At the command prompt, type cd ~ and press the enter key. You may cut and paste that command if that helps you.
  3. At the command prompt, type conda create -p $HOME/Desktop/pycamp anaconda and press the enter key. You may cut and paste that command if that helps you.
  4. You will see a list of packages which the Anaconda package manager will create for you in a new python virtual environment. At the "Proceed ([y]/n)?" prompt, type the letter y and press the enter key.
  5. Anaconda will spend several minutes putting packages in place before returning to the command prompt.
  6. At the command prompt, type subl to open Sublime to edit the command terminal profile you just edited, either .profile or .bash_profile.
  7. In the Sublime editor window for the command terminal profile, add source activate $HOME/Desktop/pycamp as a new last line in the file.
  8. Save the file by holding down the control key and type the letter s.
  9. Hold down the control key and type the letter q to close Sublime.
  10. At your command prompt, hold down the shift and control keys and type the letter t to open a command prompt in a new tab.
  11. Your new command prompt will be modified to show which virtual python environment you have activated. Entering commands like python will now search the bin directory of your virtual python environment first.
  12. Type python in all lowercase at the command prompt and press the enter key.
  13. You are now in a Python interpreter.
  14. At the ">>>" Python prompt, type 2 + 3 and press the enter key. You will see the answer "5."
  15. Hold down the control key and type the letter d to exit the Python interpreter.
  16. At the command prompt, type echo $PATH and press the enter key. PATH is all uppercase. In the list of paths, you should see the path for $HOME/Desktop/pycamp/bin listed where $HOME is the path to your home directory. This is just so you know where your virtual python environment is.
  17. At the command prompt, type source deactivate and press the enter key. You will see the command prompt return to normal after a message about your virtual python environment being discarded from your PATH.
  18. At the command prompt, type echo $PATH and press the enter key. PATH is all uppercase. In the list of paths, you should see your virtual python environment is not in your PATH for the rest of this command session. Each command session has its own PATH. If you start a new command prompt, your command terminal profile will activate your virtual python environment by default in your new command session.
  19. Type exit and press the enter key to exit the command terminal.