#๐ Error in Visual Studio Code.
40 messages ยท Page 1 of 1 (latest)
@neat spruce
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.
Are these modules installed?
yes
we can go through it
maybe is that because i created folder inside the folder for a backup?
I doubt it. I would guess that pylance doesn't know about the python environment in which you installed these packages.
Does the Python code run?
didn't try it yet
Try it.
no it doesnt run it
Pylance is a linter, to complain about various potential problems with your code.
What happens when you try?
Normally there's a terminal window in the bottom of vscode (if you're using vscode).
okay i went on new terminal
am
let me try another file
it opens but it's not as it should be
maybe because of the errors?
If you mean the pylance errors, probably not.
When you say "not as it should", what does that mean?
design wise
but it can be fixed so nw
but i think still bcs of import errors it doesn't show the look as it should be
can we check that so those problems can be gone?
Those aren't errors. The icon/symbol on the far left shows yellow triangles with a ! in it. That shows it as "warnings".
You can ignore warnings
can be they solved at least?
do you have a venv set up?
venv no
venv = virtual env
i thought it shouldn't be a problem without venv haha
You insisted that its a problem. Its not a problem
Follow this tutorial: https://code.visualstudio.com/docs/python/python-tutorial#_create-a-virtual-environment
thank you
After creating the venv, install your packages/dependencies in that venv
will do! thank you again and @quartz cove also thank you!
This help channel has been closed. 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.