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

pyenv which command doesn't append the command to the bin path inside a virtualenv #429

Closed
5 tasks
clovis-dugue opened this issue May 18, 2022 · 2 comments
Closed
5 tasks

Comments

@clovis-dugue
Copy link

Problem

When using pyenv which command inside of a virtualenv with --system-site-packages, the outputted path is the bin path, without the command itself appended to it

Reproduce

Using black (but will work with any command)

# --- Global version:
pyenv install 3.10.4
pyenv global 3.10.4

pyenv version
# 3.10.4 (set by /home/cdugue/.pyenv/version)

pip install black
pyenv which black
# /home/username/.pyenv/versions/3.10.4/bin/black


# --- Virtualenv:
pyenv virtualenv --system-site-packages my-virtualenv
pyenv activate my-virtualenv

pyenv version
# my-virtualenv (set by PYENV_VERSION environment variable)

pyenv which black
# /home/username/.pyenv/versions/3.10.4/bin/

Description

  • Platform information: Ubuntu Linux 20.04
  • OS architecture: amd64
  • pyenv version: 2.3.0
  • Python version: 3.10.4
  • C Compiler information: gcc 9.4.0
@clovis-dugue clovis-dugue changed the title pyenv which command doesn't append the command inside a virtualenv pyenv which command doesn't append the command to the bin path inside a virtualenv May 18, 2022
@clovis-dugue
Copy link
Author

After further research, this issue has been raised back in January here: #418

@native-api native-api transferred this issue from pyenv/pyenv May 18, 2022
@native-api
Copy link
Member

Duplicate of #418

@native-api native-api marked this as a duplicate of #418 May 18, 2022
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

2 participants