# python3 not working in Ubuntu 14.04

**URL:** <https://discuss.circleci.com/t/python3-not-working-in-ubuntu-14-04/4107>\
**Category:** Programming Languages\
**Created:** [May 20, 2016, 1:13am UTC](https://discuss.circleci.com/t/python3-not-working-in-ubuntu-14-04/4107 "2016-05-20T01:13:10Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![kimh](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/kimh/32/19_2.png) [@kimh](https://discuss.circleci.com/u/kimh)\
**Post date:** [May 22, 2016, 7:20am UTC](https://discuss.circleci.com/t/python3-not-working-in-ubuntu-14-04/4107/10 "2016-05-22T07:20:29Z")

</div>

@winksaville

It seems the issue is our use of `pyenv global` to set the python version.

> <https://github.com/pyenv/pyenv/issues/331>

You can read more details in the github issue, but to workaround this, you need to delete `.pyenv-version` file manually before CircleCI changes python version like this.

```auto
machine:
  pre:
    - rm .python-version

  python:
    version: 3.5.1

```

Here is a working build: [https://circleci.com/gh/kimh/trusty-test/329](https://circleci.com/gh/kimh/trusty-test/329)

There are a few options to fix this permanently and I need to think a bit to decide which path we want to go. Please use the workaround until we fix the issue.

Thank you for your patience.

---

_[View the full topic](https://discuss.circleci.com/t/python3-not-working-in-ubuntu-14-04/4107)._
