Questions tagged [pyenv-virtualenv]
61 questions
39
votes
3 answers
How do I remove pyenv virtualenvs
How do I go about removing all these virtual environments? I don't know where the directories are

alois
- 513
- 1
- 4
- 6
19
votes
5 answers
pyenv no longer sets paths correctly when activating virtual environments
I've been using pyenv for almost two years with no problems on my system running RHEL 8.3 (Linux kernel 4.18) with Gnome 3.32.2 in X11 mode. I primarily use the fish shell but also occasionally bash, both worked fine with pyenv until now. However,…

hpy
- 1,989
- 7
- 26
- 56
15
votes
3 answers
Install python 3.6.* on Mac M1
I'm trying to run an old app that requires python < 3.7. I'm currently using python 3.9 and need to use multiple versions of python.
I've installed pyenv-virtualenv and pyenv and successfully installed python 3.7.13. However, when I try to install…

tuemar29
- 218
- 1
- 2
- 9
11
votes
1 answer
How to upgrade version of pyenv on Ubuntu
I wanted to install python 3.10 but that version is not available on pyenv version list.
checked by pyenv install --list.
People suggested to upgrade pyenv that but I do not see help related to updating pyenv.

Aniket Singh
- 2,464
- 1
- 21
- 32
9
votes
3 answers
pip gives error "pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available." in mac
Edit: the answer suggested in comment or other answers I found are main for linux or for default python installed using brew. The problem I am facing is on the python version installed using pyenv
when I am trying to install any package using pip I…

Dev Khadka
- 5,142
- 4
- 19
- 33
8
votes
1 answer
Upgraded pyenv by brew, now only system python activated on new terminal
Yesterday I upgraded pyenv via brew from 1.2.24.1 -> 2.0.3. Since that time now when I open any new terminal window, python is linked to the built in system Python 2 instead of my global pyenv python.
If I do a pyenv virtualenvwrapper in a terminal…

Adam Parkin
- 17,891
- 17
- 66
- 87
8
votes
4 answers
pyenv does not use correct python version
using pyenv 2.0.3
when i'm in a folder with a python-version file, the python keeps using the system version which is 2.7.6. (not sure why it is 2.7.6 since i install 3.9.7 via brew).
$ python -V
Python 2.7.16
looking via pyenv gives
$ pyenv which…

Tjorriemorrie
- 16,818
- 20
- 89
- 131
7
votes
2 answers
How to upgrade pyenv (macOS) such that a fresh .venv contains an up-to-date pip?
I'm trying to prevent this warning every time I create a fresh .venv:
> /Users/pi/.pyenv/versions/3.10.0/bin/python -m venv .venv
> . .venv/bin/activate
> pip install ipykernel # or anything
WARNING: You are using pip version 21.2.3; however,…

P i
- 29,020
- 36
- 159
- 267
5
votes
1 answer
Error "Failed to initialize virtualenvwrapper." (WSL Windows 10)
Intro
In my WSL (Wsman Shell commandLine, version 0.2.1) on Windows 10, I got pyenv installed and try to use pyenv-virtualenvwrapper.
Yet, I can't seem to get it up and running, not even with the same .bashr and .profile config-files as I used for…

Andreas L.
- 3,239
- 5
- 26
- 65
4
votes
2 answers
Pip within Pyenv-virtualenv installing into system on Big Sur
I have installed and been using Pyenv for some time now, utilizing the Pyenv Virtualenv plugin to create venvs and activating automatically by including a .python-version as per the plugin docs.
It seems to not always work as expected, though.…

MikeiLL
- 6,282
- 5
- 37
- 68
3
votes
3 answers
Why does `python` point to my system's default python interpreter, instead of my `pyenv` python interpreter?
python points to my system's default python interpreter, instead of my pyenv python interpreter.
I created the python virtual environment and activated it as follows:
pyenv virtualenv 3.8.12 test3
pyenv activate test3
Then, running python gives me…

Franck Dernoncourt
- 77,520
- 72
- 342
- 501
3
votes
1 answer
How to create a Python virtualenv within my project directory with a specific (but uninstalled) python version
I'm a fan of virtual environments, and I also like to keep my virtualenvs in the root project directory. This helps me keep track of where they are and allows me to call them generic names, like .venv.
But I need a way to install specific versions…

John Kealy
- 1,503
- 1
- 13
- 32
2
votes
2 answers
VSCode with pyenv-virtualenv, trigger automatically?
Recently I've been using pyenv-virtualenv for my python projects and with the vscode extension "Python Environment Manager", and I love the combo.
However I currently need to activate the virtualenvs manually through the plugin.
Does anyone know if…

wartock
- 21
- 1
2
votes
1 answer
pyenv: version shown does not match actual version?
I am working on OS X 11.4 (Big Sur), and I have installed pyenv and pyenv-virtualenv.
I have also installed Python 3.9.6 via pyenv.
However, although pyenv thinks I am using Python 3.9.6...
% pyenv versions
system
* 3.9.6 (set by…

Richard
- 62,943
- 126
- 334
- 542
2
votes
1 answer
Set PYTHONPATH, when virtualenv is activated
This moment, I am using pyenv + venv to manage Python versions and specific libraries. My project layout looks like this:
dir1
subdir11
subdir12
subdir13
dir2
subdir21
subdir22
subdir23
My goal is, once venv is activated dir1 and dir2 to be…

pyargskwargs
- 41
- 4