Hello everyone. I'm install pyenv and pyenv-virtualenv following instructions in github.
My problem: I can't access other python versions that I installed through pyenv. I installed version 3.6.9, but when I use pyenv-virtualenv or a "pyenv shell 3.6.9" I'm still on the same version as my system.
But it does not help. Reinstalled zlib, readline and openssl but still does not work on Macos 11.4
CFLAGS="-I$(brew --prefix openssl)/include -I$(brew --prefix readline)/include -I$(xcrun --show-sdk-path)/usr/include" LDFLAGS="-L$(brew --prefix openssl)/lib -L$(brew --prefix readline)/lib -L$(brew --prefix zlib)/lib" CPPFLAGS="-I$(brew --prefix zlib)/include" CONFIGURE_OPTS="--with-openssl=$(brew --prefix openssl)" pyenv install 3.9.1
The Python ssl extension was not compiled. Missing the OpenSSL lib?I tried what it says in the common build problems guide but can't fix it. Any thoughts ?
sudo apt install -y gcc zlib1g-dev libbz2-dev libreadline-dev libssl-dev libsqlite3-dev curl
I have a weird problem. I have a Ubuntu 20.04.3 LTS Live USB and when running it, I cannot install llvm and tk-dev. They are simply not available. I posted an issue here about it: pyenv/pyenv#2076
Does anyone have any clue as to why I cannot download these two packages?
In the past, I've downloaded and installed these just fine.
.python-versionis ignored. I want anaconda only for jupyter and more recent python versions for development .. I can put an unset PYTHON_VERSION in the rc file but I really wonder where the variable gets set and why
pyenv shell <some python version>, run some code, then go make coffee. When I come back, the machine has gone to sleep, but when I awaken it's as if all the environment variables have been clobbered.
pyenv shell 3.9.7, then a suspend/resume cycle, then do
pyenv version, I get 3.9.7 as the output, but then when I run
python3 --versionit's clearly picking up my system python (3.8.9).
I have a problem that I can't solve for a long time.
I have installed pyenv-2.2.0 with pyenv-virtualenv.
I have installed them using this instruction https://github.com/pyenv/pyenv-installer.
But it doesn't work properly on my side.
I have a base python 3.8.8.
I installed python 3.9.7 using this command
pyenv install 3.9.7
I created virtualenv using this command
pyenv virtualenv 3.9.7 test
I activate virtualenv using this command
pyenv activate test
But python version in my terminal is still
Is here anyone who can help me?
pyenv uninstall -f <non-existing-venv>and it will be working fine. The bug is quite old it seems: pyenv/pyenv-virtualenv#369
Hopefully someone can help me out here.
MacBook Pro (Retina, 15-inch, Mid 2015)
Processor 2.8 GHz Quad-Core Intel Core i7
macOS Monterrey - 12.0.1 (21A559)
I've successfully installed pyenv 2.2.0 (both via download and via brew, same problem either way
√ ~ % pyenv --version pyenv 2.2.2 √ ~ %
I can confirm the current version of python:
√ ~ % pyenv version system (set by /Users/xxxx/.pyenv/version) √ ~ %
However, when I try to run
pyenv install --list I get the following error:
√ ~ % pyenv install --list Available versions: /Users/xxxx/.pyenv/plugins/python-build/bin/python-build: line 1957: /usr/local/bin/ls: Bad CPU type in executable /Users/xxxx/.pyenv/plugins/python-build/bin/python-build: line 1957: /usr/local/bin/ls: Bad CPU type in executable √ ~ %
Things I've already tried:
I'm a bit at my wits end (as had no such problems on my other MacBook)
Anyone have any ideas?