#๐ How to use a different venv in a subfolder of a repo in VSCode?
10 messages ยท Page 1 of 1 (latest)
@tacit lance
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
The VS Code Python interpreter dropdown list actually allows you to input which interpreter you want to use (the text box allows input). Fill up the folder path and it will work. Besides, https://stackoverflow.com/questions/58498746/vscode-python-select-interpreter-add-a-custom-path
I'll see if I can add it manually. I already tried this & restarting vscode but it doesn't work.
I have coding -> [venvs, git] and the venv I'm selecting is in the venvs folder.
Is this right? Or should this be somewhere else?
The setting file is correct. But you might use the new setting python.defaultInterpreterPath instead.
Thanks. I'll try getting it working when I have more time.
I'm just going to wipe my existing .venv and install the required packages and export to requirements.txt. It's faster than trying to figure this vscode shenanigans out right now.
!close
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.