Created
September 24, 2024 15:32
-
-
Save BlazerYoo/067c61cd40c4b3f5ab6194374f4457d7 to your computer and use it in GitHub Desktop.
Setting up python environment for cfclient
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. Intall homebrew if now already installed | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
# 2. Install pyenv if not already installed | |
brew install pyenv | |
# 3. Add pyenv to shell start up | |
export PATH="$HOME/.pyenv/bin:$PATH" | |
eval "$(pyenv init --path)" | |
eval "$(pyenv init -)" | |
source ~/.zshrc | |
# 4. Navigate to your F2024 directory (where the robo files are stored) | |
cd F2024 | |
# 5. Delete all previous drone venv files since we need to reset the drone venv | |
rm -r drone | |
# 6. Use python 3.11.4 for robo | |
pyenv install 3.11.4 | |
pyenv local 3.11.4 | |
# 7. Make drone venv | |
python3 -m venv drone | |
source drone/bin/activate | |
# 8. Verify that you are using python 3.11.4 (if it is not, then we have a problem) | |
python3 --version | |
# 9. Install cfclient | |
pip install cfclient |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment