Setup Notes

python
Author
Published

January 8, 2024

Modified

April 8, 2024

Setup

We’ll need to get our systems setup to work properly with the tools we’ll be using this semester.

VSCode and The Command Line

Windows Users

If you ware using a windows computer, I’ll ask you to install Windows Subsystem for Linux like so:

MacOS/Linux Users

Python

pyenv

We’ll be using a program called pyenv to manage the versions of python we use. To install pyenv, open the VSCode Command Palette (with ) which will open the command line interface. Then,

bash
curl https://pyenv.run | bash

Once that has successfully finished:


MacOS Users

bash
open ~/.zshrc
If you get an error.
bash
touch ~/.zshrc
open ~/.zshrc

WSL users

bash
open ~/.bashrc
If you get an error
bash
touch ~/.bashrc
open ~/.bashrc

sh
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"

Installing Python

bash
pyenv install 3.11
pyenv global 3.11
pyenv virtualenv 3.11 Lin511
pyenv activate Lin511

This will have installed a recent version of python onto your computer, and created a “virtual environment” for the class.

Installing some

Git & Github Configuration

Make sure you change the email and name to the email and username you use for Github!

bash
git config --global user.email "you@example.com"
bash
git config --global user.name "Your Name"

Then, follow these tutorials from github:

Back to top

Reuse

CC-BY-SA 4.0

Citation

BibTeX citation:
@online{fruehwald2024,
  author = {Fruehwald, Josef},
  title = {Setup {Notes}},
  date = {2024-01-08},
  url = {https://lin511-2024.github.io/notes/programming/00_setup.html},
  langid = {en}
}
For attribution, please cite this work as:
Fruehwald, Josef. 2024. “Setup Notes.” January 8, 2024. https://lin511-2024.github.io/notes/programming/00_setup.html.