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

py.exe does not detect that we are using a virtual environment #6

Open
felix9743 opened this issue Jun 12, 2024 · 0 comments
Open

py.exe does not detect that we are using a virtual environment #6

felix9743 opened this issue Jun 12, 2024 · 0 comments

Comments

@felix9743
Copy link

Problem:

It seems that py.exe cannot detect that we are using a virtual environment. So, if I run a script with the py command and with the environment activated, it will not take it into account.

If needed, I can provide more information or do tests.

Environment:

Windows 10, PowerShell, Poetry

Example:

(myproject-py3.11) PS F:\myproject> pyenv global; pyenv local
3.12.3
3.11.9

(myproject-py3.11) PS F:\myproject> python -V; python -c "import sys; print(sys.executable)"
Python 3.11.9
F:\myproject\.venv\Scripts\python.exe

(myproject-py3.11) PS F:\myproject> py -V; py -c "import sys; print(sys.executable)"
Python 3.11.9
C:\Users\PC\.pyenv\pyenv-win\versions\3.11.9\python.exe
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