downgrade python version from 3.8 to lower one in a given conda environment

我的未来我决定 提交于 2021-01-27 07:51:21

问题


In one existing conda environment, the python is 3.8. Is that possible to downgrade the python version for this specific environment from 3.8 to 3.6 or 3.7?


回答1:


Check this, Open your terminal and search for available versions using the following command.

conda search python

If the python version you are searching is available then use the command

conda install python=3.8 (0r 3.6 or 3.7 depending to your requirement)

This will change the python version in a specific environment.

Note: This command will overwrite the default python version.

I suggest you open a new conda environment using the following command.

conda create --name py38 python=3.8 
//This lines will create a new environment named py38

Now you can work into this environment without interfering with the libraries of the other environment.

Hope this will help you.



来源:https://stackoverflow.com/questions/59367727/downgrade-python-version-from-3-8-to-lower-one-in-a-given-conda-environment

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!