#๐ Environment
37 messages ยท Page 1 of 1 (latest)
@worn turtle
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.
dunno what's going on ๐ฆ
i am new to this and after creating an environment i am getting this
my hunch is that you somehow bungled the creation of the virtualenv, but since I didn't watch you do it, I don't know.
What does you file structure look like?
maybe delete it, and create a new one; and capture the screen of how you did it
Did you put the venv after you create the "Learn" directory.
yeah first i have created venv then put under learn
Thats the issue. You moved it after it was created. so it cant find it cause you moved it. Easy fix is to just delete all of .venv and remake the venv using the command pallette
okay
what code should i use to create the venv correctly
there are different codes
You dont need to code. just Ctrl + Shift + P then type Python: Create Environment.
Select venv
.
Shouldn't
Its should be all fine once you make a new one.
okay
and what is the correct way to activate the environment
it should automatically do that. If not make sure its selected in the status bar
Select 3.10.6 then in the drop-down menu find the python version that has venv attached to it with the file path that look the same as mine
Your python version will be differnt depending on which version you are using.
Mine doesn't do that either. It should be fine.
okay
You may have gotten a prompt like this.
https://github.com/microsoft/vscode-python/wiki/Activate-Environments-in-Terminal-Using-Environment-Variables
yeah i have just got that
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.