Change the Python Version in Anaconda

  1. Use the conda install Command on the Anaconda Command Prompt
  2. Use the Latest Anaconda Installer
  3. Use the conda create Command on the Anaconda Command Prompt
  4. Use the conda update Command on the Anaconda Command Prompt

This article introduces various methods to change the Python version in Anaconda.

How to manage Python projects using...
How to manage Python projects using Virtualenv

Once you change the Python version on the Anaconda command prompt, you can use the following command to display the current version of Python.

python --version

Use the conda install Command on the Anaconda Command Prompt

Use the conda install command on the Anaconda command prompt to change the Python version. Follow this example below.

conda install python=<the_version>

Here’s another example.

conda install python=3.5

Use the Latest Anaconda Installer

Use the latest Anaconda installer to update the Python version. It is a graphical installer.

You will find the newer versions of Python here.

You will find the older versions of Python here.

Use the conda create Command on the Anaconda Command Prompt

If you’d like to install the new version of Python in a particular environment, you could use the conda create command.

conda create -n <my_environment> python=<new_version>

Here’s another method you can follow.

conda create -n an_env python=3.5

Post that, you need to activate the environment using the command below.

conda activate <my_environment>

You can also issue the command in the following way.

conda activate an_env

Use the conda update Command on the Anaconda Command Prompt

If you want to change the version of Python to the latest version, you can do so by utilizing conda update command. Here’s the program you can do.

conda update python