How to change python version in Anaconda?

前端 未结 4 800
说谎
说谎 2020-12-31 19:30

I am trying to get into deep learning. I installed Anaconda to use jupyter and generally not to care about installing all of those packages like matplotlib etc myself. But I

4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-31 20:00

    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/
    

    (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  python=3.6.8
    

    (replace 'myenv' with the name of your new environment)

    After that, activate the environment with :

    conda activate 
    

提交回复
热议问题