Installing Python 3, Numpy, and Scipy (macOS) (Option 1)
- Open the terminal app.
- Install Xcode Command Line Tools by entering the following command:
- Install the Homebrew package manager by copy-pasting the following into
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)".
This allows you to install Python 3 from the terminal.
- Install Python 3 by entering the following into the terminal:
brew install python3
- Check to see if Python 3 installed properly by entering the following into the terminal:
It should return
- Enter in the terminal
python3 -m pip install numpy scipy
- Change the directory/path in terminal to the folder that contains the python file you'd like to run
cd (Drag folder icon into terminal)).
- Enter into the terminal
python3 my_file.py to run your code.
Installing Python 3, Numpy, Scipy (macOS) (Option 2)
- Open download and install MacPorts
- Open a Terminal
sudo port install python37 py37-numpy py37-scipy py37-gnureadline py37-tkinter
Installing Python 3, Numpy, and Scipy (Windows)
The following steps assume you're using Windows 10 and Microsoft VS
the text editor that we use in class. Please email the CS Dept. Windows Support Person Ethan Seal
to troubleshoot problems.
- Download and install Microsoft VS Code.
- Install the Python
if you'd like syntax coloring.
- Download Python 3.7 and run the installer.
- Make sure the last checkbox is checked: "Add Python 3.7 to PATH".
- Click "Install Now" at the top.
- Press WinKey+R to open the Run box.
cmd and enter.
python --version and it should print Python 3.7.2. If it doesn't, something went
- Install pip. Download get-pip.py,
navigate to the download directory in the command prompt, run
- Install Numpy and Scipy. Run
python -m pip install --user numpy scipy
- Open Microsoft VS Code.
- Open the python file you'd like to run.
- On the bottom left corner of the Microsoft VS Code editor window, if you see "Select Python
and select Python 3.7 that you installed. If you do not see "Select Python Environment", follow the
you should see "Python 3.7.2" on the lower-left corner of the VS Code editor window.
- If you see a box on the lower-right with a message "Linter pylint is not installed",
click "Do not show again"
- Press control+` to open the built-in terminal.
- Navigate in the terminal to the python (.py) file that you'd like to run (e.g. using cd).
- Run your python code with
© 2018. Page last modified: