If you want to set specific version, use it like this:
WARNING: This command will overwrite the default python version system-wise
conda install python=3.6
To create environment with a specific version, you can do:
conda create -n $PYTHON36_ENV_NAME python=3.6 anaconda # set custom env name
The
anacondaat the end allows the env to use all anaconda packages
For more information refere to Anaconda documentation
Answer from CermakM on Stack OverflowHow to downgrade python with conda on windows? - Technical Topics - Anaconda Forum
Conda 4.7 cannot downgrade Python when necessary
Downgrading Python Version in Existing Conda Environment
How to downgrade Python from version 3.11.5 to 3.10.6.
Videos
If you want to set specific version, use it like this:
WARNING: This command will overwrite the default python version system-wise
conda install python=3.6
To create environment with a specific version, you can do:
conda create -n $PYTHON36_ENV_NAME python=3.6 anaconda # set custom env name
The
anacondaat the end allows the env to use all anaconda packages
For more information refere to Anaconda documentation
There are two ways to downgrade python in anaconda.
1. Downgrade python in the active environment
(This can lead to conflicts with installed packages for higher python versions)
conda activate nameOfYourEnvironment
conda install python=3.3
2. Create a new environment
(This is a more safer way, but you need to reinstall all packages)
conda activate base
conda create --name env_name python=3.3
Hint: Use conda list before creating a new environment to get the names of all installed packages in the recent environment.
If you want to check your installed environments, use:
conda env list
If you had problems with the installation, make sure that you run the shell as administrator (always recommended).
Greetings,
I have an environment built in Conda that I have done a lot of work in, but I need to downgrade the Python version in order for a particular package to work. That being said, nothing I've attempted so far has been successful. With my environment activated, I've attempted:
conda install python=3.7.6
which began an installation, but it didn't change the version. I then changed the version of Python within my environment.yml file, and attempted to update the environment with
conda /pathtoenv/env --prefix ./env --file environment.yml --prune
The environment is in my Anaconda 3 distribution directory, but my .yml is in my local directory where the work is. I don't know if that makes a difference or not, but neither of these two options has worked. No matter what I do, my environment is still running 3.8.2, which is strange because I specifically built the environment originally with 3.7.3.
After running my Stable Diffusion webui-user.bat, it shows that my Python version is 3.11.5, but my computer has Python 3.10.6 installed. Despite the fact that the environment (sd) I created in Anaconda Prompt is using Python 3.10.5, and entering 'python -V' also shows Python 3.10.5, the webui-user.bat still indicates a version mismatch.
I'm wondering if there's a way to resolve this issue? I need to use Anaconda, and I suspect the problem might be because the Anaconda Navigator I installed is for Python version 3.11.5, but I can't find Anaconda Python 3.10.6 64-bit available online.
img:
https://cdn.discordapp.com/attachments/1084466893718569002/1201523272022511687/how_to_downgrade.png?ex=65ca20bf&is=65b7abbf&hm=52d9c4d48dac148b6fce10ec1be5fffc47858727ed210e69af8cfbacb0f56d11&