Check setup #
Welcome back to CS! These instructions will help you get your computer set up for the class. If you get stuck or are unsure what to do, first check out the debugging section at the bottom of the page. If you are still encountering an error, please send a screenshot of your error to Ms. Brown.
Ensure Xcode is Updated #
π» Copy and paste the command below into your Terminal to install Xcode.
Then press Enter/Return. Make sure you have a strong internet connection, this may take up to 2 hours to complete. Don’t worry, you can still use your computer and have it running in the background.
xcode-select --install
π» Enter your password when prompted. You won’t see any letters appearing as you enter the password. This is a security feature.
πΎ π¬If you already have this installed, you will see the following message instead:
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
Update Homebrew #
Homebrew helps you install different libraries and packages
π» Update Homebrewbrew update
brew upgrade
Upgrade Poetry #
π» Upgrade Poetrypoetry self update
poetry self add poetry-plugin-shell
Github Setup #
π» Upgrade ghbrew upgrade gh
π» Ensure you are logged into Github. Follow the instructions.
gh auth login
Testing your Setup #
π» Run each of the following checks one at a time to check your setup. If you do not see an version number, there was an error with the install.
βοΈ Checks Xcode
xcode-select --version
βοΈ Checks Python
python3 --version
βοΈ Checks Homebrew
brew --version
βοΈ Checks Poetry
poetry --version
β‘β¨ Fill out the Install Formβ Fill out this form to notify your teachers if your install was successfull or not: forms.gle/uHZ2xGhuhhYFnCkXA
Debugging #
If code --version shows EACCES: permission denied, unlink '/usr/local/bin/code'
- First double check
VS Codeis in your βApplicationsβ folder - In the top menu click
View > Comannd Palette... - Type
uninstall code, click the option - Type
install code, click the option - In Terminal, try
code --version. - If you do not see a version number, run this command:
sudo chown -R your_user_name /usr/local/bin - In Terminal, try
code --version. - If still does not show a verison number, ask a teacher.
If you see Error: poetry not installed or if your poetry version starts with a 1, e.g. 1.8.3
- Run this command in your terminal
pipx install poetry - Try
poetry self add poetry-plugin-shellagain
If poetry --version does NOT show a version number.
- Copy & Paste this command into the Terminal:
pipx ensurepath - Try
poetry --versionagain. - If still does not show a verison number, ask a teacher.
If brew --version does NOT show a version number.
- Copy & Paste the commands below into the Terminal. Be sure to paste them one at a time. Each time, pressing
returnto run the command.echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofileeval "$(/opt/homebrew/bin/brew shellenv)"
- Try
brew --versionagain. - If still does not show a verison number, ask a teacher.