我开始使用python 3.6创建新项目,我想将circleci附加到我的项目中。在circleci中使用Python 3.6.0
我circle.yml是
machine:
timezone:
Asia/Seoul
python:
version: 3.6.0
dependencies:
pre:
- pip install -r requirements/ci.txt
test:
post:
- python manage.py test
和circleci错误
python-build: definition not found: 3.6.0
The following versions contain `3.6.0' in the name:
3.6.0b1
See all available versions with `pyenv install --list'.
If the version you need is missing, try upgrading pyenv:
cd /opt/circleci/.pyenv/plugins/python-build/../.. && git pull && cd -
((if (or (= "3.6.0" "system") (pyenv versions --bare | grep -x -q "'3.6.0'")) (pyenv global "3.6.0") (chain-and (pyenv install --skip-existing "" "3.6.0") (pyenv global "3.6.0") (pyenv rehash) (pip install virtualenv) (pip install nose) (pip install pep8) (pyenv rehash)))) returned exit code 2
Action failed: set python version to 3.6.0
似乎circleci不支持最新的pyenv版本。
我该如何解决?
我想你必须使用测试版,直到CircleCI支持最终版本。 – jonrsharpe
我可以在circleci上安装最新版本的pyenv吗? – Curzy