-
I'm getting I have my anaconda environment selected as my interpreter in VS code. I know it's just a warning and not interrupting my code, but I would just like to know if I have something setup wrong. Please let me know if I should provide some other information for this. Modules which have this warning: datetime, random, typing, argparse |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 18 replies
-
EDIT: Ignore this question. It's just a mental lapse. Sorry for that. Having similar issue while I'm using a native Python interpreter (that is directly installed on my PC). In my case, I have a module |
Beta Was this translation helpful? Give feedback.
-
@Ritesh313 it looks like your configuration thinks the site-packages folder is user code for some reason. We'd need to see your settings.json and the log as described here: |
Beta Was this translation helpful? Give feedback.
-
Made an issue out of this: |
Beta Was this translation helpful? Give feedback.
Yeah that's the root cause, your virtual env folder is in the workspace. So we treat it as user source because we can't tell that it's actually a virtual env directory.
You can workaround this a number of ways:
python.analysis.exclude
setting for that directorybin/activate
script to the venv directories. It doesn't actually have to do anything.