close

How to change Python version of existing conda virtual environment?

Hello Guys, How are you all? Hope You all Are Fine. Today We Are Going To learn about How to change Python version of existing conda virtual environment in Python. So Here I am Explain to you all the possible Methods here.

Without wasting your time, Let’s start This Article.

Table of Contents

How to change Python version of existing conda virtual environment?

  1. How to change Python version of existing conda virtual environment?

    Activate the relevant environment, then install your target python version.
    conda activate my_env conda install python=3.6

  2. change Python version of existing conda virtual environment

    Activate the relevant environment, then install your target python version.
    conda activate my_env conda install python=3.6

Method 1

Activate the relevant environment, then install your target python version.

conda activate my_env
conda install python=3.6

Method 2

Rebuild a new environment, for example called “myenvi”

conda create --name myenvi python=3.6

And make sure the version by

python --version

After installing all packages, double-check with

conda list -n myenvi

Summery

It’s all About this issue. Hope all Methods helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which Method worked for you? Thank You.

Also, Read