Why is python 3.6.1. not available in pyenv?
If you installed pyenv via pyenv installer: pyenv update If you installed pyenv via Homebrew brew upgrade pyenv If you installed pyenv via Git: cd $(pyenv root) && git pull
If you installed pyenv via pyenv installer: pyenv update If you installed pyenv via Homebrew brew upgrade pyenv If you installed pyenv via Git: cd $(pyenv root) && git pull
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
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
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
You can install pyenv in your home directory (as described in pyenv’s installation guide), and then create a symlink at ~/.pyenv/versions to $(brew –cellar)/python: ln -s $(brew –cellar python)/* ~/.pyenv/versions/ The way Homebrew works nowadays, this will pick up both 2.x and 3.x.
On Mojave, after installing Xcode command line tools, had to run the following: sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
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
I had this problem with Mojave and Python 3.7.3. This worked for me: SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk MACOSX_DEPLOYMENT_TARGET=10.14 pyenv install 3.7.3
That eval “$(pyenv init -)” eval “$(pyenv virtualenv-init -)” should be in .bashrc, not .bash_profile. The latter is executed only by login shells, the former by all interactive shells.
pyenv accepts a switch to the install command to list available versions: –list, or -l for short: $ pyenv install -l Available versions: 2.1.3 2.2.3 2.3.7 2.4.0 2.4.1 2.4.2 … Before running pyenv install -l, you may need to update pyenv as described here. Otherwise the list may not include the latest versions (thank you … Read more