我要从Python.org捆绑Python安装程序(python 3.7.3)。我计划将静默模式安装作为大型安装程序的一部分使用。
在here的安装说明中,它说明用户是否选择“立即安装”:
您无需成为管理员(除非需要对C运行时库进行系统更新,或者为所有用户安装适用于Windows的Python启动器)
但是,我已经在系统上安装了python 3.7.3,并且浏览安装目录时,我可以看到安装目录根目录中存在vcruntime140.dll
的副本。我选择了将其安装到我的c:根目录,因此不需要管理员权限。
我假定在c:\windows\SysWOW64\vcruntime140.dll
中安装上述DLL需要管理员权限,但是如果将其捆绑在安装目录中,为什么根本需要更新系统运行时?
答案 0 :(得分:0)
这可能只是文档错误。 Here是安装程序真正运行(或至少应该运行)的方式:
When installed for all users, the following files are installed to
either "%SystemRoot%\System32" or "%SystemRoot%\SysWOW64" as
appropriate. For the current user, they are installed in the Python
install directory.
.\python3x.dll The core interpreter
.\python3.dll The stable ABI reference
.\appcrt140.dll Microsoft Visual C Runtime
.\desktopcrt140.dll Microsoft Visual C Runtime
.\vcruntime140.dll Microsoft Visual C Runtime
When installed for all users, the following files are installed to
"%SystemRoot%" (typically "C:\Windows") to ensure they are always
available on PATH. (See Launching Python below.) For the current user,
they are installed in the Python install directory.
.\py[w].exe PEP 397 launcher