Skip to content

Latest commit

 

History

History
55 lines (38 loc) · 1.18 KB

python.md

File metadata and controls

55 lines (38 loc) · 1.18 KB

Python and related tooling

https://opensource.com/article/19/5/python-3-default-mac

brew install pyenv

Add pyenv to your config file (.zshrc or .bash_profile)

echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n  eval "$(pyenv init --path)"\nfi' >> ~/.zshrc

Determine all versions of python available

pyenv install --list

Install a version and set it to global

pyenv install 3.10.6
pyenv global 3.10.6

echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n  eval "$(pyenv init -)"\nfi' >> ~/.zshrc
brew install py2cairo
brew install pygobject3
pip install termcolors
pip install notebook
pip install --upgrade pip

Python

pip3 install pipenv
/usr/local/bin/pipenv

Mypy