# Error "pyenv: version \`3.6' not installed" since a week

**URL:** <https://travis-ci.community/t/error-pyenv-version-3-6-not-installed-since-a-week/1400>\
**Category:** Travis CI Discussions & Feedback\
**Tags:** python\
**Created:** [December 13, 2018, 8:29am UTC](https://travis-ci.community/t/error-pyenv-version-3-6-not-installed-since-a-week/1400 "2018-12-13T08:29:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Basile.B](https://avatars.discourse-cdn.com/v4/letter/b/85e7bf/32.png) [@Basile.B](https://travis-ci.community/u/Basile.B)\
**Post date:** [December 13, 2018, 8:29am UTC](https://travis-ci.community/t/error-pyenv-version-3-6-not-installed-since-a-week/1400/1 "2018-12-13T08:29:35Z")

</div>

The projects are not written in python but can be built using Meson so typically there was in the config file

```auto
  - pyenv global system 3.6
  - pip3 install 'meson>=0.47'

```

Since a week this has started to fail, with the message “pyenv: version `3.6’ not installed”.  
After determining that the python version setup by default is now 3.4.3, there was an attempt to use this version number with `pyenv`, which also failed. Finally the only things that worked was

```auto
  - pyenv install 3.6.3
  - pyenv global system 3.6.3
  - pip3 install 'meson==0.47'

```

But this is super slow. What’s happening ? Could you recommend me a faster way to setup Meson ?  
Note that the python version doesn’t matter at all.

- [Example of fixed repo](https://github.com/dlang-community/libdparse/blob/master/.travis.yml)
- [Example of still failing repo](https://www.travis-ci.org/kaleidicassociates/lubeck/jobs/466924091)

---

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [December 13, 2018, 11:28am UTC](https://travis-ci.community/t/error-pyenv-version-3-6-not-installed-since-a-week/1400/2 "2018-12-13T11:28:13Z")

</div>

The problem most probably appeared when [Travis recently dropped container-based environments](https://changelog.travis-ci.com/deprecation-container-based-linux-build-environment-82037).

Unless your project `language:` is `python`, [you only have whatever Python 2 and Python 3 versions the distribution provides preinstalled](https://docs.travis-ci.com/user/reference/trusty/#python-images) – [which for Trusty is `python3 3.4.0`](https://travis-ci.com/native-api/test_travis/builds/94622285). If you need anything else, you have to install it yourself.

[The simplest solution for you will be to move to `dist: xenial`](https://travis-ci.com/native-api/lubeck/builds/94626488) which provides [`python3 3.5.1`](https://packages.ubuntu.com/search?suite=xenial&searchon=names&keywords=python3) that `meson` still supports as of this writing.

Note that you’ll have to `sudo apt-get python3-setuptools python3-pip` to install packages with `pip3`.

---

<div class="post-metadata">

**Author:** ![Basile.B](https://avatars.discourse-cdn.com/v4/letter/b/85e7bf/32.png) [@Basile.B](https://travis-ci.community/u/Basile.B)\
**Post date:** [December 13, 2018, 11:34am UTC](https://travis-ci.community/t/error-pyenv-version-3-6-not-installed-since-a-week/1400/3 "2018-12-13T11:34:19Z")

</div>

Yes i just realized that pyenv is not required. But Meson requires python 3 \>= 3.5 so it looks like the first step that is to install another python 3 version (first link) is actually necessary although slow.

---

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [December 13, 2018, 11:35am UTC](https://travis-ci.community/t/error-pyenv-version-3-6-not-installed-since-a-week/1400/4 "2018-12-13T11:35:31Z")

</div>

Is moving to `xenial` as I suggested not an option?

---

<div class="post-metadata">

**Author:** ![Basile.B](https://avatars.discourse-cdn.com/v4/letter/b/85e7bf/32.png) [@Basile.B](https://travis-ci.community/u/Basile.B)\
**Post date:** [December 13, 2018, 11:36am UTC](https://travis-ci.community/t/error-pyenv-version-3-6-not-installed-since-a-week/1400/5 "2018-12-13T11:36:23Z")

</div>

It is and I’m trying this right now.
