conda upgrade python environment code example Example 1: update python in miniconda conda install python=3.6 Example 2: update python in miniconda conda update python