Skip to content

Start a new Python3 Env in 10 sec

If pyenv or venv is still hard to handle, could consider Miniconda. It helps you deploy and start a brand new Python environment with just 3 lines of commands. Just change PYPATH and have fun.

MacOS

PYPATH="$HOME/py3"
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh
bash ./miniconda.sh -b -p $PYPATH

## activate
export PATH=$PYPATH/bin:$PATH

Linux

PYPATH="$HOME/py3"
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
bash ./miniconda.sh -b -p $PYPATH

## activate
export PATH=$PYPATH/bin:$PATH