简体   繁体   English

如何在anaconda中设置环境默认的python?

[英]How to set the environment default python in anaconda?

It makes me crazy, In anaconda I create the environment with the defualt iterpreter python3.4 Next I install pytorch 0.4.1 这让我抓狂,在Anaconda中,我使用defualt iterpreter python3.4创建了环境,然后安装了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! 之后,我发现pytorch已安装在python3.6中!

And the environment defualt interpreter is chaged from python3.4 to python3.6. 并且环境默认解释器从python3.4变为python3.6。

I am very confused what happend ? 我很困惑发生了什么事? How shoud I fix it back? 我应该怎么解决呢? change defualt python back to python3.4? 将defualt python改回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? Novak说的没错,剩下的问题是如何手动将python版本从3.6更改为3.4,是否可以处理任何配置文件?

As you can see here there is no version of pytorch for python3.4... The default version of pytorch is for python3.6 and that is the version you installed installed. 正如你可以看到这里没有版本pytorch为python3.4的... pytorch的默认版本是python3.6,这是您安装安装的版本。 In the process anaconda prompts you that it will have to upgrade/downgrade some package versions and there is probably the the line in which it says it will upgrade python to 3.6 在此过程中,anaconda会提示您必须升级/降级某些软件包版本,并且可能在该行中表示将python升级到3.6

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM