Python support on Windows

Guys, pretty-please, bring python to the windows images so there is less hustle setting this up with choco/conda and build time is considerably faster :pray: :pray: :pray:


Here is the script I use to install conda on Travis windows builds: conda4travis.

It’s similar to @kangwonlee’s script.

We also need Python for AMICI.[]

Thank you for bringing Windows support, I recently came across.
Here is the following way to install required Python on Windows using pyenv-win (pyenv for Windows).
Note:- Choose the python version based on your need, no restrictions.
Build passing Windows Travis CI:

language: python
sudo: false

    - os: windows
      language: sh
        - git clone $HOME/.pyenv
        - export PATH="$HOME/.pyenv/pyenv-win/bin:$HOME/.pyenv/pyenv-win/shims:$PATH"
        - pyenv install -q 3.7.1
        - pyenv rehash
        - pyenv local 3.7.1
        - python --version
        - pip install -r requirements_dev.txt
    - os: linux
      python: 2.7
        - pip install -r requirements_dev27.txt
    - os: linux
      python: 3.7
        - pip install -r requirements_dev.txt

  - "PYTHONPATH=. python -m pytest -v -s --cov=shconfparser tests"

  - coveralls

Hope this helps :slight_smile:


My .travis.yml config file doesn’t work anymore. I used to have settings for windows

  • name: “Python 3.8.0 on Windows”
    os: windows # Windows 10.0.17134 N/A Build 17134
    language: shell # ‘language: python’ is an error on Travis CI Windows
    - choco install python --version 3.8.0
    - python --version
    - python -m pip install --upgrade pip
    - pip3 install --upgrade pytest
    env: PATH=/c/Python38:/c/Python38/Scripts:$PATH

and the error on travis-ci

Enjoy using Chocolatey? Explore more amazing features to take your

67experience to the next level at


69The command “choco install python --version 3.8.0” failed and exited with 1 during .


71Your build has been stopped.

This used to work. I am not sure what happened.

Edited later: it looks like is down. It says “The service is unavailable.”

A post was split to a new topic: Job fails even though the exit code is 0

Any update on whether and when there will be built-in support for Python 3 in the Windows environment on Travis?

1 Like

It’s a shame this doesn’t get addressed.