Assorted work for courses CS240 (Computer Security, taught by Wes Chao), CS280 (Computer Vision, taught by Wes Chao), CS320 (Intro ML, taught by Wes Chao), CS321 (Adv ML, taught by Wes Chao) at Nueva.
Install Homebrew and Python 3 in MacOS: (link)
- Install command line tools:
xcode-select --install
# to update tools, use "softwareupdate --install -a"
# from https://stackoverflow.com/questions/34617452/- Install Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"- Update path for Homebrew. Add the following line to the bottom of your
~/.zshrcfile:
export PATH="/usr/local/opt/python/libexec/bin:$PATH"- Install Python 3:
brew install python- Install packages:
python3 -m pip install packagenameCreate a virtual environment in MacOS: (link)
- Navigate to the project directory you want to create the virtual environment in.
- Create a virtual environment:
python3 -m venv venvname- Activate a virtual environment:
source venvname/bin/activate
# to deactivate, type "deactivate"Adding a virtual environment as a Jupyter kernel in MacOS: (link)
- Activate the virtual environment:
source venvname/bin/active- Install Jupyter in the virtual environment:
python3 -m pip install jupyter- Add the virtual environment as a kernel:
ipython kernel install --name "kernelname" --user