pyenv / pyenv-virtualenv

a pyenv plugin to manage virtualenv (a.k.a. python-virtualenv)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pyenv deactivate doesn't deactivate env

razvan opened this issue · comments

Easy to reproduce with zsh 5.8.1 (x86_64-ubuntu-linux-gnu):

pyenv virtualenv 3.11.1 deleteme
pyenv local deleteme
pyenv which python # /home/razvan/.pyenv/versions/deleteme/bin/python
pyenv deactivate deleteme
pyenv which python # /home/razvan/.pyenv/versions/deleteme/bin/python

The virtual env is still active after the deactivate call.

Prerequisite

  • Make sure your problem is not listed in the common build problems.
  • Make sure no duplicated issue has already been reported in the pyenv issues. You should look for closed issues, too.
  • Make sure you are not asking us to help solving your specific issue.
    • GitHub issues is opened mainly for development purposes. If you want to ask someone to help solving your problem, go to some community site like Gitter, StackOverflow, etc.
  • Make sure your problem is not derived from packaging (e.g. Homebrew).
    • Please refer to the package documentation for the installation issues, etc.
  • Make sure your problem is not derived from plugins.
    • This repository is maintaining pyenv and the default python-build plugin only. Please refrain from reporting issues of other plugins here.

Description

  • Platform information (e.g. Ubuntu Linux 16.04): Ubuntu 22.04.2 LTS
  • OS architecture (e.g. amd64): amd64
  • pyenv version: pyenv 2.3.21-2-ga2dff480
  • Python version: 3.11.1
  • C Compiler information (e.g. gcc 7.3): 11.3.0

Duplicate of #439