Deactivate pyenv in current shell

If you want to use the python version from your system temporarily (until you close your current shell): pyenv shell system https://github.com/pyenv/pyenv/blob/master/COMMANDS.md#pyenv-shell If you want by default your system’s python pyenv global system https://github.com/pyenv/pyenv/blob/master/COMMANDS.md#pyenv-global Suppose your shell is currently in the ‘src’ folder and you want src and all its subfolders to use by default … Read more

How do I remove pyenv virtualenvs

Assuming that list came from running pyenv virtualenvs, you should be able to run pyenv uninstall 3.8.2/envs/greenhouse to remove the 3.8.2/envs/greenhouse environment. The environments themselves should be subdirectories of whatever pyenv root returns when you run it. Try doing cd $(pyenv root) and then looking in the versions/ and versions/{version}/envs/ subdirectories. See the documentation for … Read more

pyenv configure: error: C compiler cannot create executables

This worked for me: I removed the command line tools as root and reinstalled … Your Command Line Tools (CLT) does not support macOS 11. It is either outdated or was modified. Please update your Command Line Tools (CLT) or delete it if no updates are available. Update them from Software Update in System Preferences … Read more

how to uninstall pyenv(installed by homebrew) on Mac

From the docs: Uninstalling pyenv The simplicity of pyenv makes it easy to temporarily disable it, or uninstall from the system. To disable Pyenv managing your Python versions, simply remove the pyenv init line from your shell startup configuration. This will remove Pyenv shims directory from PATH, and future invocations like python will execute the … Read more

ModuleNotFoundError: No module named ‘_lzma’ when building python using pyenv on macos

None of the prior answers worked for me. The instructions in this gist worked for me. In short: You may be missing the xz libraries, in which case you can install them with Homebrew and then reinstall/rebuild the Python version from pyenv: $ brew install xz $ pyenv uninstall <desired-python-version> $ pyenv install <desired-python-version> Note: … Read more