tag:help.appveyor.com,2012-11-13:/discussions/problems/22401-python-installer-failsAppVeyor: Discussion 2019-05-25T21:01:06Ztag:help.appveyor.com,2012-11-13:Comment/471002002019-03-21T21:59:38Z2019-03-21T21:59:38ZPython installer fails<div><p>Is <a href="https://ci.appveyor.com/project/Youka/ssb-implementation/builds/23239110#L121">this</a> the output you expect?</p></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/471002002019-03-22T07:57:58Z2019-03-22T07:58:00ZPython installer fails<div><p>No, i tried to install Python <strong>3.7.2</strong> (see <a href="https://ci.appveyor.com/project/Youka/ssb-implementation#L92">curl url</a>), the output is the default Python installation of appveyor (Python 2.7 folder + addition to Windows <em>PATH</em>).<br>
For debugging i added <strong>||</strong> to the commands for an alternative output (Python installer fails and <a href="https://ci.appveyor.com/project/Youka/ssb-implementation#L93">shows directory</a>; Vapoursynth installer fails and <a href="https://ci.appveyor.com/project/Youka/ssb-implementation#L125">can't even show log file</a> because it never started).</p></div>Youkatag:help.appveyor.com,2012-11-13:Comment/471002002019-03-22T15:15:55Z2019-03-22T15:15:55ZPython installer fails<div><p>Python 3.7.2 is <a href="https://www.appveyor.com/docs/windows-images-software/#python">already on the build machine</a>.</p>
<p>Just add <code>set "PATH=C:\Python37-x64;C:\Python37-x64\Scripts;%PATH%"</code> to your configuration.</p></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/471002002019-03-22T19:18:18Z2019-03-22T19:18:19ZPython installer fails<div><p>I can't because the reason to install Python is to be able to install Vapoursynth which requires <a href="https://github.com/vapoursynth/vapoursynth/blob/master/installer/vsinstaller.iss#L265">registry entries</a> (among other possibilities) from system-wide Python installation at installer startup.<br>
Furthermore i don't want to rely too much on appveyor pre-installed software and mimic what users have to do on a new windows system.</p>
<p>Are there security issues or special restrictions for appveyor builds i have to consider?<br>
I'm sorry having to insist on that :/ Thanks so far for your help.</p></div>Youkatag:help.appveyor.com,2012-11-13:Comment/471002002019-03-25T06:20:21Z2019-03-25T06:20:21ZPython installer fails<div><p>After doing some testing with the python installer I determined that the <code>InstallAllUsers</code> feature was the one that was making the command fail. But it should succeed if you first install the version pre-installed.</p>
<p>You can try adding these lines to your <code>install:</code> section before downloading and installing python.</p>
<pre>
<code>- C:\Users\appveyor\AppData\Local\"Package Cache"\{c0f1e976-f585-48f8-968d-48c870496d4e}\python-3.7.2-amd64.exe /uninstall /passive
- set "PATH=C:\Program Files\Python37;C:\Program Files\Python37\Scripts;%PATH%"</code>
</pre></div>Owen McDonnell