https://docs.python.org/3/using/mac.html
No python
, only python3
in Ventura and newer.
the very basic
brew install python
brew postinstall python3
pip3 install virtualenv virtualenvwrapper
virtualenv -p python3 env_name
source env_name/bin/activate
deactivate
create venv (python3)
python3 -m venv .venv
source ./venv/bin/activate
Add to ~/.zshrc:
plugins=(virtualenv)
Edit ~/.oh-my-zsh/themes/robbyrussell.zsh-theme
Add after PROMPT=
PROMPT+='%{$fg[green]%}$(virtualenv_prompt_info)%{$reset_color%}%'
exit()
.venv\Scripts\activate.bat