Lecture 01b – Python Installation
Goals for this video lecture
Build a modern scientific computing environment with Python
Launch you into “Assignment 01”
Section 1: Installing Git and getting organized
Create a new account on GitHub
Get the git software
Section 2: Installing Python
Download “Miniforge”
https://conda-forge.org/download/
If you have an “m1” or later chip, make sure you select the Apple Silicon option.
If you get a “Windows Protected your PC”, click more info then Run Anyway.
Install Miniforge
On Install For: Probably choose Just Me unless you know what you’re doing.
I strongly recommend you install it in C:\Users\<YOUR_USERNAME>\miniforge3
Keep all defaults EXCEPT make sure you do check “Add Miniforge3 to my PATH environment Variable”
Anaconda vs Conda vs Mamba vs Miniforge
Launch CMD prompt
Use git to get the class repository
IF you wanted to create a new “environment”
Section 3: Installing VS Code
Download Visual Studio Code (VS Code)
code.visualstudio.com/download
I recommend selecting the “User Installer”, 64-bit option for windows. is okay.
Install VS Code
Use the default install options with the exception of the two that start with
“Add Open with Code” action…
Launch VS Code
We’ll talk about it more in class, but VS Code is becoming the most-used “integrated development environment” (IDE) across nearly all programming languages, including remarkable growth among R users.
I prefer the light color scheme
Apparently that makes me in the tiny minority among hackernews, reddit/r/ProgrammerHumor or other centers of intelligencia for coding
Sign in with Sync
Enable Settings Sync
This will prompt you to Sign In.
Select Sign in with GitHub
Install the VS Code Python Extension
Click the extensions tab.
Then install the Python extension
You are now ready to do Assignment 01 on the course website!
Please enjoy this picture of what I assume (with no research) is a python.
�Appendix (optional)
If you didn’t set your path to have mamba in it:
The following windows command (replacing the username) will set it to the path.
SETX PATH "%PATH%;C:\Users\<YOUR_USERNAME>\miniforge;C:\Users\<YOUR_USERNAME>\miniforge;"