Skip to content

Start a new Python3 Environment in 10 sececond

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

Disclaimer
  1. License under CC BY-NC 4.0
  2. Copyright issue feedback me#imzye.me, replace # with @
  3. Not all the commands and scripts are tested in production environment, use at your own risk
  4. No privacy information is collected here
Try my iOS App