如何在Travis CI上构建Python 3.8?

问题描述 投票:2回答:1

例如,当我按照instructions provided使用Travis构建Python 3.8时

language: python 

matrix:
  include:
    - name: "Python 3.8 dev"
      python: 3.8-dev
      dist: trusty
      env: PYTHON=python3 PIP=pip3  # Unnecessary on Lunix

I get

3.8-dev is not installed; attempting download
Downloading archive: https://storage.googleapis.com/travis-ci-language-archives/python/binaries/ubuntu/14.04/x86_64/python-3.8-dev.tar.bz2
0.06s$ curl -sSf -o python-3.8-dev.tar.bz2 ${archive_url}
curl: (22) The requested URL returned error: 404 Not Found
Unable to download 3.8-dev archive. The archive may not exist. Please consider a different version.

如何在Travis CI上构建Python 3.8?

python-3.x travis-ci
1个回答
5
投票

将dist改为xenial,因为需要3.7或更高。

https://docs.travis-ci.com/user/languages/python/#python-37-and-higher

© www.soinside.com 2019 - 2024. All rights reserved.