- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在 AppVeyor 上安装 python 3.5.0+ 时遇到问题。我用来调用 subprocess.check_output
的参数是:
[u'python-3.6.3-amd64.exe',
u'/quiet',
u'TargetDir=C:\\Python363-x64',
u'AssociateFiles=0',
u'Shortcuts=0',
u'Include_doc=0',
u'Include_launcher=0',
u'InstallLauncherAllUsers=0',
u'Include_tcltk=0',
u'Include_test=0']
安装程序返回一个非零状态代码以及以下日志文件:
(抱歉使用了pastebin,它很长并且显然stackoverflow有字符限制)
安装程序退出后,请求的 TargetDir
(C:\\Python363-x64
) 中不会安装任何 python。实际上该目录甚至没有创建,如果我事先手动创建它也没有帮助。
我尝试首先运行 /uninstall
(认为它可能会跳过安装,因为已经安装了 appveyor 版本),但同样的问题仍然存在。我尝试过 /passive
和 /quiet
选项。我也在其他 python 版本(3.5.0+)上尝试过这个,但没有成功。 (早期版本有 .msi
安装程序,并且安装正确)
我想知道是否有其他人可以重现此问题,或者您是否知道我做错了什么。
最佳答案
这是在 AppVeyor 环境中安装 Python 3.6.4 的示例 PowerShell 脚本:
Write-Host "Installing Python 3.6.4 x64..." -ForegroundColor Cyan
Write-Host "Downloading..."
$exePath = "$env:TEMP\python-3.6.4-amd64.exe"
(New-Object Net.WebClient).DownloadFile('https://www.python.org/ftp/python/3.6.4/python-3.6.4-amd64.exe', $exePath)
Write-Host "Installing..."
cmd /c start /wait $exePath /quiet TargetDir=C:\Python36-x64 Shortcuts=0 Include_launcher=1 InstallLauncherAllUsers=1
请随意根据您的需要采用它。
关于python - 使用特定 TargetDir 以/安静模式安装 Python 可执行文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49734767/
我正在为我的应用程序创建一个 MSI 包。要求是,如果应用程序 A 安装在客户端计算机上,则此新设置应安装在该应用程序文件夹中。否则它应该创建自己的文件夹。 我已经创建了自定义安装程序。我已经覆盖了
我在 VS2012 项目文件中使用构建前/构建后事件来执行构建任务。 这在本地工作得很好,但我在从我们的 TFS 2012 Build Server 运行它时遇到了问题。 本地$(TargetDir)
我在设置 TARGETDIR 路径时遇到问题。我用过 dark.exe反向工程一个有效的 MSI 文件并阅读我能找到的关于这个主题的任何帖子,但我似乎无法将 TARGETDIR 设置为指向路径 Pro
我在 AppVeyor 上安装 python 3.5.0+ 时遇到问题。我用来调用 subprocess.check_output 的参数是: [u'python-3.6.3-amd64.exe',
我刚刚开始第一次使用 WiX。 我在现有的 C 项目中添加了一个 WiX Votive 项目。 要自动为二进制文件选择正确的源文件夹,请使用以下命令: 这导致以下错误: 1>C:\code\Capt
我正在尝试使用 CoApp 打包遗留 C++ 项目。该项目要求将可再发行的 .dll 包复制到 $(TargetDir) 的子目录。 我可以在生成的 MyProj.redist.targets 文件中
当我构建 netcore 2.0 项目时,VS2017 在 \bin\DEBUG\netcoreapp2.0\* 中生成文件,而不是在 \bin\DEBUG\* 中。 它在调试时产生海市蜃楼效果,因为
我的项目是更大解决方案的一部分,已从 dbproj 转换为 asqlproj (SSDT)。该解决方案包括一个引用 SSDT 项目的 WiX 安装程序。 WiX 项目通过 VS2010 在多个开发人员
我是一名优秀的程序员,十分优秀!