Skip to content

Python Tutorials

Install Brew on macOS

shell
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

# Run these commands in your terminal to add Homebrew to your PATH
echo >> /Users/xuguoxing/.zprofile
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/xuguoxing/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"

Install Python on macOS

shell
brew install [email protected]

Create a virtual env with a specific version of python

shell
python3.9 -m venv "my_env_name"

Language Learning

Library