# \`pyenv global 3.8.0\` does not change the python version on mac os

**URL:** <https://travis-ci.community/t/pyenv-global-3-8-0-does-not-change-the-python-version-on-mac-os/10146>\
**Category:** macOS\
**Tags:** build-env, python\
**Created:** [October 12, 2020, 5:18pm UTC](https://travis-ci.community/t/pyenv-global-3-8-0-does-not-change-the-python-version-on-mac-os/10146 "2020-10-12T17:18:22Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [October 14, 2020, 10:47am UTC](https://travis-ci.community/t/pyenv-global-3-8-0-does-not-change-the-python-version-on-mac-os/10146/4 "2020-10-14T10:47:00Z")

</div>

Add `eval "$(pyenv init -)"` (note the quotes) to your script to add Pyenv shims directory to `PATH`.

* * *

You likely want to add `/Users/travis/.pyenv/versions` to cache and do `pyenv install -s` to avoid building Python from source anew every time.

---

_[View the full topic](https://travis-ci.community/t/pyenv-global-3-8-0-does-not-change-the-python-version-on-mac-os/10146)._
