in

pyenv can’t make virtualenv even with pyenv-virtualenvwrapper installed


So first I installed pyenv with brew install pyenv. After trying to install virtualenvs unsuccessfully I installed virtualenv with brew install pyenv-virtualenv. I noticed that there was no folder named ~/.virtualenvs so I made one and ran the command export WORKON_HOME=~/.virtualenvs.

I ran the steps:
export PATH=/Users/<myusername>/.pyenv/shims:$PATH
pyenv install 3.10.1
pyenv global 3.10.1
pyenv rehash
pyenv virtualenv 3.10.1 test1 (which gave no output, and the folder .virtualenvs remained empty)
export WORKON_HOME=~/.virtualenvs
source ~/.pyenv/shims/virtualenvwrapper.sh

The terminal then crashes and vanishes. I had to do a screen recording to get the error. This still is from a video of the vscode terminal crashing.

I am using a 2021 MacBook M1 Pro running Monterey

What’s the problem here?



Source: https://stackoverflow.com/questions/70629681/pyenv-cant-make-virtualenv-even-with-pyenv-virtualenvwrapper-installed

A game to test programming and logical skills

Modern and flexible SIP (RFC3261) command line tool