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

How to integrate with Visual Studio Code? #34

Open
victorwoo opened this issue Nov 22, 2024 · 0 comments
Open

How to integrate with Visual Studio Code? #34

victorwoo opened this issue Nov 22, 2024 · 0 comments

Comments

@victorwoo
Copy link

In Windows 11, I opened the PowerShell terminal and entered some commands to create a local Python environment called env_name. I used the pyenv-win-venv commands like this:

pyenv-win-venv install 3.8.5 env_name
pyenv-win-venv activate env_name
pyenv-win-venv local env_name

Then, I opened Visual Studio Code. I pressed Ctrl + Shift + P to bring up the command palette and selected Python: Select Intepreter. But I didn't see the env_name interpreter in the list.

However, when I used pyenv-virtualenv commands instead:

pyenv local 3.12.7
pyenv shell 3.12.7
virtualenv -p3.12.7 env_name

Visual Studio Code could recognize this new environment. And in the Python: Select Intepreter option, there was a new entry Python 3.12.7 ('env_name': venv).\env_name\Scripts\python.exe. So, I'm wondering how to make pyenv-win-venv work properly with Visual Studio Code just like virtualenv does.

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