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

Poetry doesn’t use the correct version of Python

pyproject.toml is used to define all the dependencies for your project, including the supported python version. The line your complaining about is just saying that the versions of python supported by the project is python2.7 or greater, this is independent of what versions of python you’ve installed with pyenv. python = “^2.7” If you want … 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

Unable to install tkinter with pyenv Pythons on MacOS

TL;DR set the env. vars. mentioned in tcl-tk‘s caveats and this GitHub comment when installing new Pythons via pyenv to get tkinter. First, ensure you have the latest tcl-tk via homebrew and then pay attention to its caveats: ※ brew install tcl-tk ※ brew info tcl-tk tcl-tk: stable 8.6.10 (bottled) [keg-only] … ==> Caveats tcl-tk … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)