我正在尝试将 Travis Ci 测试添加到 python 项目中,但每次运行它时都会出现错误提示:
Setting APT mirror in /etc/apt/sources.list: http://us-east-
1.ec2.archive.ubuntu.com/ubuntu/
3.1 is not installed; attempting download
Downloading archive: https://s3.amazonaws.com/travis-python-
archives/binaries/ubuntu/14.04/x86_64/python-3.1.tar.bz2
$ curl -sSf -o python-3.1.tar.bz2 ${archive_url}
curl: (22) The requested URL returned error: 403 Forbidden
Unable to download 3.1 archive. The archive may not exist. Please consider a
different version.
这是 travis.yml 文件:
language: python
python:
- "3.1"
install: pip install -r requirements.txt
script:
- python tests.py
它告诉你 Python 3.1 不是 Travis 支持的版本,请尝试更新的版本,例如
language: python
python:
- "3.6"
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句