tensorflow – How to change python version in Anaconda?

tensorflow – How to change python version in Anaconda?

A better (recommended) alternative is to create a virtual environment of the desired Python version and then use that environment to run Tensorflow and other scripts.

To do that, you can follow the instructions given here.

BUT, if you dont want to create a separate environment, then conda install python=<version> should do.

OR (not recommended) you can download the latest Anaconda installer with your required Python version bundled.


Sometime command is not working as expected I was also facing same issue when I
used this command.

conda install python=<version> 

then I have changed the Python version with the help of anaconda Navigator. I have create new enviornment and follow below instruction=>

  1. In Navigator, click the Environments tab, then click the Create button. The Create new environment dialog box appears.
  2. In the Environment name field, type a descriptive name for your environment.

3.In the Packages list select “Python” and in the Python version list select the version you want to use.

4.Click the Create button.

5.Navigator creates the new environment and activates it, as shown by the highlighted green bar. All actions take place in the active environment.

for more details please go through this link =>

tensorflow – How to change python version in Anaconda?

By default, the conda environment will use the python version 3.7, since you installed Anaconda with python3.7.

You would need to create a symbolic link to the new version of the python (in your case python3.6.8) using

ln -s ~/anaconda3/bin/<python3.6.8>

(you may need to replace python3.6.8 with the appropriate file name).

Another, better way would be to create a new environment in conda and then use python3.6.8 as you would like. Follow steps at https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#creating-an-environment-with-commands to create an environment.

For python3.6.8, run the following command:

conda create -n <myenv> python=3.6.8

(replace myenv with the name of your new environment)

After that, activate the environment with :

conda activate <myenv>

Leave a Reply

Your email address will not be published. Required fields are marked *