Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pipenv --rm only removes one virtual environment #6331

Open
mokazemi opened this issue Dec 26, 2024 · 0 comments
Open

pipenv --rm only removes one virtual environment #6331

mokazemi opened this issue Dec 26, 2024 · 0 comments

Comments

@mokazemi
Copy link

Issue description

My project have a .venv directory inside it (which is a virtual environment made by python -m venv and another one under ~/.local/share/virtualenvs which is managed by pipenv. The thing is, running command pipenv --rm only removes the .env directory inside the project root, instead of the one managed by pipenv.

Expected result

It should ask which environments wants to be removed (instead of removing the first one)

Actual result

It only removes the first .venv directory that it finds.

Steps to replicate

  1. Create a pipenv environment by running pipenv install [something]
  2. Create another environment by running python -m venv .venv
  3. run this command and see which environment is removed: pipenv --rm

$ pipenv --support

Pipenv version: '2024.4.0'

Pipenv location: '/usr/lib/python3.13/site-packages/pipenv'

Python location: '/usr/bin/python'

OS Name: 'posix'

User pip version: '24.3.1'

user Python installations found:

PEP 508 Information:

{'implementation_name': 'cpython',
 'implementation_version': '3.13.1',
 'os_name': 'posix',
 'platform_machine': 'x86_64',
 'platform_python_implementation': 'CPython',
 'platform_release': '6.12.6-arch1-1',
 'platform_system': 'Linux',
 'platform_version': '#1 SMP PREEMPT_DYNAMIC Thu, 19 Dec 2024 21:29:01 +0000',
 'python_full_version': '3.13.1',
 'python_version': '3.13',
 'sys_platform': 'linux'}

System environment variables:

  • SHELL
  • SESSION_MANAGER
  • WINDOWID
  • COLORTERM
  • XDG_CONFIG_DIRS
  • FUNCNEST
  • XDG_SESSION_PATH
  • XDG_MENU_PREFIX
  • ICEAUTHORITY
  • LANGUAGE
  • LC_ADDRESS
  • LC_NAME
  • SHELL_SESSION_ID
  • MEMORY_PRESSURE_WRITE
  • DESKTOP_SESSION
  • LC_MONETARY
  • GTK_RC_FILES
  • EDITOR
  • XDG_SEAT
  • PWD
  • XDG_SESSION_DESKTOP
  • LOGNAME
  • XDG_SESSION_TYPE
  • SYSTEMD_EXEC_PID
  • XAUTHORITY
  • MOTD_SHOWN
  • GTK2_RC_FILES
  • HOME
  • LC_PAPER
  • LANG
  • XDG_CURRENT_DESKTOP
  • KONSOLE_DBUS_SERVICE
  • MEMORY_PRESSURE_WATCH
  • WAYLAND_DISPLAY
  • KONSOLE_DBUS_SESSION
  • PROFILEHOME
  • XDG_SEAT_PATH
  • INVOCATION_ID
  • KONSOLE_VERSION
  • MANAGERPID
  • KDE_SESSION_UID
  • QV4_GC_TIMELIMIT
  • XKB_DEFAULT_LAYOUT
  • XDG_SESSION_CLASS
  • TERM
  • LC_IDENTIFICATION
  • USER
  • COLORFGBG
  • QT_WAYLAND_RECONNECT
  • KDE_SESSION_VERSION
  • PAM_KWALLET5_LOGIN
  • DISPLAY
  • SHLVL
  • MOZ_ENABLE_WAYLAND
  • LC_TELEPHONE
  • LC_MEASUREMENT
  • XDG_VTNR
  • XDG_SESSION_ID
  • XDG_RUNTIME_DIR
  • DEBUGINFOD_URLS
  • LC_TIME
  • QT_AUTO_SCREEN_SCALE_FACTOR
  • JOURNAL_STREAM
  • XDG_DATA_DIRS
  • KDE_FULL_SESSION
  • BROWSER
  • PATH
  • DBUS_SESSION_BUS_ADDRESS
  • KDE_APPLICATIONS_AS_SCOPE
  • MAIL
  • LC_NUMERIC
  • KONSOLE_DBUS_WINDOW
  • _
  • PIP_DISABLE_PIP_VERSION_CHECK
  • PYTHONDONTWRITEBYTECODE
  • SECRET_KEY
  • PROFILE_CREDENTIAL_USERNAME
  • PROFILE_CREDENTIAL_PASSWORD
  • PROFILE_URL
  • PROFILE_URL_LOGIN
  • PROFILE_URL_VERIFY
  • PROFILE_URL_REFRESH
  • WELL_CREDENTIAL_USERNAME
  • WELL_CREDENTIAL_PASSWORD
  • WELL_URL
  • WELL_URL_LOGIN
  • WELL_URL_VERIFY
  • WELL_URL_REFRESH
  • PYTHONFINDER_IGNORE_UNSUPPORTED

Pipenv–specific environment variables:

Debug–specific environment variables:

  • PATH: /home/mohammad/.cargo/bin:/home/mohammad/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/var/lib/flatpak/exports/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
  • SHELL: /bin/bash
  • EDITOR: nano
  • LANG: en_US.UTF-8
  • PWD: /home/mohammad/Documents/Work/Meeraab-core/meeraab_core

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant