All Questions
24 questions
1
vote
0
answers
95
views
python -V and pyenv versions show different python version
I got recommended to use pyenv to manage and install python versions.
Until now I've installed python using sudo apt-get install python3.
pyenv recommends using homebrew so I've installed it.
But, ...
0
votes
1
answer
382
views
VSCode task with pyenv and zsh
I'm having an issue with configuring tasks for VSCode while using pyenv-virtualenv (not virtual env!), kind of similar to this but it is not solved and it also refers only to .zshrc not .zprofile.
I ...
3
votes
1
answer
2k
views
Mystery Getting Started with Python / pyenv on MacOS Sonoma
I learned programming in the MS-DOS environment with Assembly language and C, so please be a little gentle…
I want to use Python (3.12.1 is installed) on MacOS 14.2.1 (Sonoma) where Python 3.9.6 is ...
0
votes
2
answers
535
views
pyenv shell errors after uninstalling pyenv
I've recently been diagnosing why my pyenv installation is giving me errors in the shell. After trying everything I could find, I thought I would remove it from my system. However, after uninstalling, ...
1
vote
0
answers
2k
views
How do you install the 'python' command on MacOS v12 Monterey?
I want the python command to work in the zsh terminal and launch python 2.7.
Please Note
Python 2 is NOT pre-installed in MacOS. That ended with v12 MacOS Monterey.
I am NOT looking for Python 3. I ...
1
vote
1
answer
4k
views
Pyenv and Conda coexisting
I want to use pyenv and conda. Pyenv for managing my python versions and conda mostly for Jupiter Notebook. However, every time I use conda it overrides pyenv paths and sets local python version for ...
3
votes
0
answers
2k
views
What's happening when I use miniforge with pyenv?
I'm struggling to find any documentation on this.
I started using pyenv a while back on my M1 Mac to manage python versions.
Recently I had some issues getting tensorflow installed, so followed some ...
1
vote
2
answers
2k
views
wrong python version shown inside VSCode
I created a virtual env using this method within my VSCode Studio.
pyenv install 3.7.4
pyenv virtualenv 3.7.4 apps3
pyenv local apps3
pyenv activate apps3
However, when I check python --versionafter ...
5
votes
1
answer
6k
views
pyenv global command doesn't set the correct python version
So I activated this virutal environment:
pyenv install 3.7.4
pyenv virtualenv 3.7.4 apps3
pyenv local apps3
pyenv activate apps3
and also set this:
pyenv global 3.7.4
I already have these in my ....
0
votes
0
answers
4k
views
how to activate Pyenv locally
What's the correct way to activate a Pyenv environment? I want to use an env with python version 3.7.4. I tried this following this tutorial: https://akrabat.com/creating-virtual-environments-with-...
3
votes
2
answers
9k
views
add Pyenv commands to bashrc or zshrc?
This tutorial to create virtual environments suggests, that I should add these commands to my .bashrc file:
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
On the home ...
2
votes
1
answer
4k
views
pyenv-virtualenv python version does not change on env activation
I've got some problems with activating virtual environments using pyenv-virtualenv. When I activate an environment with pyenv, it looks like it worked. However the python version has not changed. The ...
0
votes
2
answers
1k
views
Error message when starting Zsh on Windows Terminal - Pyenv badly configured
I set up Zsh (with OhMyZsh) within Windows Terminal app 8 months ago, and used it many times to develop Python apps.
A couple months ago, I started getting the following error message when opening the ...
1
vote
1
answer
7k
views
Issues installing python using pyenv on macOS M1
I was trying to prepare multi-version python development environment using pyenv. I've succesfully installed the pyenv. I installed the pyenv through homebrew (https://github.com/pyenv/pyenv#homebrew-...
3
votes
1
answer
2k
views
Pyenv broke after upgrading to Big Sur
Pyenv has not worked since upgrading to Big Sur. This is how it started:
❯ pyenv install 3.8.0
python-build: use [email protected] from homebrew
python-build: use readline from homebrew
Downloading Python-3....