How to connect existing venv to VS Code? /u/bearinthetown Python Education

I’m new to Python. I learned today how to create venv and it works. But I still don’t know how to make VS Code acknowledge my pip packages from venv.

I found the option to create venv from VS Code and when I do that, it works. I install packages inside venv, for example `pip install pytest` and VS Code recognizes my `import pytest`.

I tried to choose my `.venv/bin/python3` as my project’s Python interpreter and I thought it would start to recognize my packages, but it doesn’t.

Can I connect existing venv to VS Code to make it find my pip packages inside venv?

submitted by /u/bearinthetown
[link] [comments]

​r/learnpython I’m new to Python. I learned today how to create venv and it works. But I still don’t know how to make VS Code acknowledge my pip packages from venv. I found the option to create venv from VS Code and when I do that, it works. I install packages inside venv, for example `pip install pytest` and VS Code recognizes my `import pytest`. I tried to choose my `.venv/bin/python3` as my project’s Python interpreter and I thought it would start to recognize my packages, but it doesn’t. Can I connect existing venv to VS Code to make it find my pip packages inside venv? submitted by /u/bearinthetown [link] [comments] 

I’m new to Python. I learned today how to create venv and it works. But I still don’t know how to make VS Code acknowledge my pip packages from venv.

I found the option to create venv from VS Code and when I do that, it works. I install packages inside venv, for example `pip install pytest` and VS Code recognizes my `import pytest`.

I tried to choose my `.venv/bin/python3` as my project’s Python interpreter and I thought it would start to recognize my packages, but it doesn’t.

Can I connect existing venv to VS Code to make it find my pip packages inside venv?

submitted by /u/bearinthetown
[link] [comments] 

Leave a Reply

Your email address will not be published. Required fields are marked *