本文由我司收集整编,推荐下载,如有疑问,请与我司联系
为什么不添加
Python
呢?在安装时执行到我的系统路径?
为什么不添加
Python
呢
?
在安装时执行到我的系统路径
?[
英
]Why
wouldn’t
I want
to add Python.exe to my System Path at install time?
I’m
reinstalling Python, on Windows
7, and one of the first dialog boxes is the Customize Python screen.
我正在
Windows 7
上重新安装
Python
,第一个对话框之一是定制
Python
屏幕。
The default setting for
“Add
Python.exe to
Path”
is
“Entire
feature will be
unavailable.”
“
添加
Python”
的默认设置。
exe
到路径是
“
整个特性将不可用
”
。
I always change this to
“Will
be installed on local hard
drive.”
我总是把这个改成
“
将安装在本地硬盘上
”
。
It’s
not an issue, changing the system environment variables is a snap, but is there
any
upside to leaving this un-ticked?
这不是一个问题,改变系统环境变量是一件容易的事,但是离开这个没有标记的
系统有什么好处吗
?
7
If you only have one version of Python installed, it
won’t
matter.
如果您只安装了一个版本的
Python
,那也没有关系。
If you have multiple versions installed, then the first one that appears in your system
Path
will
be
executed
when
you
use
the
“python”
command.
Additionally,
it
can
make
older versions inaccessible without extra work. For example, I had a system with
Python
2.7 installed and I added 3.2 on top of that and checked the option to to add Python.exe
to
the path during installation. After doing that, entering both
“python”
and
“python3”
on the
command
line
opened
up
Python
3.2,
so
I
would
need
to
enter
the
full
path
to
the
2.7
interpreter when I needed to execute 2.x scripts.
如果安装了多个版本,那么当您使用
“python”
命令时,系统路径中出现的第一个
版本将被执行。此外,它可以使旧版本不需要额外的工作就无法访问。例如,我安
装了一个带有
Python
2.7
的系统,并在上面添加了
3.2
,并检查了添加
Python
的选