How to set the environment default python in anaconda?

时间:2019-01-07 13:30:10

标签: python anaconda conda pytorch

It makes me crazy, In anaconda I create the environment with the defualt iterpreter python3.4 Next I install pytorch 0.4.1

conda install pytorch=0.4.1 cuda80 -c pytorch

After this I found that the pytorch was installed in python3.6!

And the environment defualt interpreter is chaged from python3.4 to python3.6.

I am very confused what happend ? How shoud I fix it back? change defualt python back to python3.4? Hope some one could help me.

The commands I typed in are as follows:

conda create -n pointgen python=3.4 ipykernel
source activate pointgen
conda install pytorch=0.4.1 cuda80 -c pytorch

Thats all. What Novak said is right, there is remaining question is how could I manually change the python version from 3.6 back to 3.4, is there any config file I can deal with?

1 个答案:

答案 0 :(得分:1)

如您所见,here没有适用于python3.4的pytorch版本... pytorch的默认版本适用于python3.6,即您已安装的版本。在此过程中,anaconda会提示您必须升级/降级某些软件包版本,并且可能在一行中表示将python升级到3.6