简体   繁体   English

在Windows 10上安装Anaconda2

[英]Installation of Anaconda2 on Windows 10

While installing Anaconda2 on Windows 7 , there is an advanced options dialog box that asks if the user wants to Add Anaconda to my PATH environment variable and if the user wants to Register Anaconda as my default Python 2.7 . Windows 7上安装Anaconda2时,有一个高级选项对话框,询问用户是否要将Add Anaconda to my PATH environment variable以及用户是否要将Register Anaconda as my default Python 2.7

在此处输入图片说明

However, on Windows 10, this dialog box does not appear, thus no option on whether the user wants to register Anaconda as their default Python 2.7. 但是,在Windows 10上,不会出现此对话框,因此用户是否要将Anaconda注册为其默认Python 2.7没有选择。

I have two questions: 我有两个问题:

1) Is there a way to make this dialog box appear during a Win10 install? 1)有没有办法使该对话框在Win10安装过程中出现? I'm currently installing it without Admin privileges, perhaps the advanced options dialog appears if I run it with Admin privileges? 我当前正在安装时没有管理员权限,如果以管理员权限运行它,也许会出现advanced options对话框?

2) If there is no option to have the advanced options dialog box show with Windows 10, is there a way to ensure that Anaconda is NOT registered as the default Python 2.7? 2)如果没有选项可以在Windows 10中显示advanced options对话框,是否有办法确保Anaconda没有注册为默认的Python 2.7?

You can manually edit the PATH environment variables and select which python version you want to be the default. 您可以手动编辑PATH环境变量,然后选择要作为默认版本的python版本。 Go to Control Panel -> System and Security -> System -> Advanced system settings -> Advanced tab -> Environment Variables. 转到控制面板->系统和安全->系统->高级系统设置->高级选项卡->环境变量。

From here, if you select 'Path' in System variables and then Edit, you can add the file path to whichever python version you want to be your default, and remove the anaconda path if it's there. 在这里,如果您在系统变量中选择“路径”,然后选择“编辑”,则可以将文件路径添加到要用作默认版本的任何python版本,如果存在,则删除anaconda路径。

If you are using an IDE for development, you can choose what python interpreter you want for development purposes in there. 如果您使用IDE进行开发,则可以在那里选择想要用于开发目的的python解释器。 To choose what python you want windows defaulting to, you just modify the Path under Control Panel=>System=>Environment Variables=>Path. 要选择Windows要默认使用的python,只需在控制面板=>系统=>环境变量=>路径下修改路径。 On Win 10, if it isn't in there, just click on "new" and add the path to the python installation you want to use as the default interpreter. 在Win 10上,如果不在其中,只需单击“新建”,然后将路径添加到要用作默认解释器的python安装中。 If the one you don't want is in there, just remove it. 如果您不想要的那一个在那里,只需将其删除。 To see which one it sees as the default, just open a cmd window and type python, hit enter. 要查看哪个是默认设置,只需打开一个cmd窗口并键入python,然后按Enter。

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

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