Python on macOS or:

virtual python=$(which python3)

Start

brew install python
brew install python3
alias python=$(which python3)
alias pip=$(which pip3)
alias pipconfig="pip config list -v"
alias pythoncerts="python -c "import ssl; print(ssl.get_default_verify_paths())""

Environments

python -m pip install --upgrade pippip install virtualenv virtualenvwrapper pipenv pyenvbrew install direnv
brew install pyenv direnv
export VIRTUALENVWRAPPER_PYTHON=$(which python3)
export WORKON_HOME=~/.virtualenvs
source /usr/local/bin/virtualenvwrapper.sh
alias workoff=deactivate
alias workdel=rmvirtualenv
python -mvirtualenv /Users/your_name_here/tmp -p python3.7
pyenv install 3.7
pipenv --python 3.7

homebrew-python

brew install sashkab/python/python@3.X
/usr/local/opt/python@3.X/bin/python3.X -mvenv <path to venv>
/usr/local/opt/python@3.X/bin/python3.X -mpip install -U pip setuptools wheel

Covering all my bases

export PATH="/usr/local/opt/python@3.7/bin:$PATH"
alias python3.7="/usr/local/opt/python@3.7/bin/python3.7"
python -mvirtualenv /Users/your_name_here/tmp -p python3.7pyenv install 3.7pipenv --python 3.7

Asterisks

--

--

--

Is this bio too short? Or is it just the right length?

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

BlogPost_204

Intel AX210 and Linux

In order to generate high quality content a machine needs to have some knowledge.

Live Streaming Video Chat App

Exploring real-time occupancy data of meeting rooms

Comparing JSON serializers w/ Rails

A hands-on guide to use Katalon Mobile Recorder

How to get around CORS error from third party API

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
corcoran

corcoran

Is this bio too short? Or is it just the right length?

More from Medium

Plain Python Installation on Local Machine

Must have Python extension for VS Code

Python Static Analysis Tools

How to Use UTF-8 with Python