Skip to content

Start a new Python3 Environment in 10 sececond

homepage-banner

As a Python developer, you may have faced the challenge of managing dependencies and ensuring that your code runs smoothly across different machines. The solution to this issue is the use of virtual environments, a tool that allows you to create isolated Python installations and manage your dependencies cleanly.

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
Leave a message