# Issue with python install on machine executor

**URL:** <https://discuss.circleci.com/t/issue-with-python-install-on-machine-executor/31982>\
**Category:** Build Environment\
**Created:** [August 15, 2019, 7:21pm UTC](https://discuss.circleci.com/t/issue-with-python-install-on-machine-executor/31982 "2019-08-15T19:21:24Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![AndreyShprengel](https://avatars.discourse-cdn.com/v4/letter/a/ec9cab/32.png) [@AndreyShprengel](https://discuss.circleci.com/u/AndreyShprengel)\
**Post date:** [August 15, 2019, 9:44pm UTC](https://discuss.circleci.com/t/issue-with-python-install-on-machine-executor/31982/2 "2019-08-15T21:44:37Z")

</div>

FYI my earlier suspicions seem to be correct as preceding the build with the following command fixes the issue:

```auto
   
       command: |
            pyenv uninstall -f 3.6.5
            sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \
            libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
            xz-utils tk-dev libffi-dev liblzma-dev python-openssl git
            pyenv install 3.6.5

```

if anyone experiences a similar issue you can use that as work around and cache the image though is is sub-optimal

---

_[View the full topic](https://discuss.circleci.com/t/issue-with-python-install-on-machine-executor/31982)._
