Python Win32无提示安装 [英] Python Win32 Silent Install

查看:83
本文介绍了Python Win32无提示安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

看起来Win32扩展程序的安装程序已从Wise更改为

distutils,所以现在我的自动静音安装不再工作了。

任何人都知道如果distutils二进制安装程序可以静默运行吗?我

还没能找到distutils二进制文件的命令行参考(我是

仍在筛选 http://www.python.org/doc/current/dist/ ,尽管......)。


也许有更好的方法来无人值守安装Win32

扩展(也就是说,可能不使用二进制文件)?


无论如何,我正在python.org和星舰页面上查看这个,但是我想b $ b我想看看是否有人能指出我的权利方向...


- 马特

解决方案

" Matt Gerrans" <毫安********** @ hp.com>写道:

看起来Win32扩展的安装程序已经从Wise更改为
distutils,所以现在我的自动静默安装不再工作了。
任何人都知道distutils二进制安装程序是否可以静默运行?我没有找到distutils二进制文件的命令行参考(我还在继续筛选 http://www.python.org/doc/current/dist/ ,尽管...)。


distutils创建的安装程序没有命令行选项,

并且无法进行无提示安装。

也许有一个更好的方法来无人值守安装Win32
扩展(也就是说,可能没有使用二进制文件)?




我应该很容易写一个Python脚本打开二进制文件作为

a zipfile,然后在没有显示gui的情况下执行gui所做的事情。


Thomas


Matt Gerrans写道:

也许有一种更好的方法可以无人值守安装Win32
扩展(也就是说,可能没有使用二进制文件)?




您可以使用ActivePython MSI包,其中包含PyWin32

扩展,并提供静默安装选项:

http://aspn.activestate.com/ASPN/doc...install_silent


干杯,

Trent


-

Trent Mick
tr **** @ activestate.com


这听起来很容易,但我认为Acive State套餐需要一些

类别的许可。我正在数百万台消费者电脑上预装。


Looks like the installer for the Win32 extensions has changed from Wise to
distutils, so now my automated silent installations don''t work anymore.
Anyone know if the distutils binary installer can be run silently? I
haven''t been able find a command line reference for distutils binaries (I''m
still sifting through http://www.python.org/doc/current/dist/, though...).

Maybe there is a better way to do an unattended install of the Win32
extensions (that is, perhaps without using the binary)?

Anyway, I''m looking into this on the python.org and starship pages, but I
just thought I''d see if anyone can point me in the right direction...

- Matt

解决方案

"Matt Gerrans" <ma**********@hp.com> writes:

Looks like the installer for the Win32 extensions has changed from Wise to
distutils, so now my automated silent installations don''t work anymore.
Anyone know if the distutils binary installer can be run silently? I
haven''t been able find a command line reference for distutils binaries (I''m
still sifting through http://www.python.org/doc/current/dist/, though...).
There are no command line options for the distutils created installer,
and silent installation is not possible.
Maybe there is a better way to do an unattended install of the Win32
extensions (that is, perhaps without using the binary)?



I should be quite easy to write a Python script that opens the binary as
a zipfile, and then does what the gui does without showing a gui.

Thomas


Matt Gerrans wrote:

Maybe there is a better way to do an unattended install of the Win32
extensions (that is, perhaps without using the binary)?



You could use the ActivePython MSI package, which includes the PyWin32
extensions and offers a silent install option:

http://aspn.activestate.com/ASPN/doc...install_silent

Cheers,
Trent

--
Trent Mick
tr****@activestate.com


That sounds easy enough, but I imagine the Acive State package requires some
kind of licensing. I''m pre-installing on millions of consumer PCs.


这篇关于Python Win32无提示安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆