Skip to content

Conda environment folders are not recognized as virtual environments #5191

@rchiodo

Description

@rchiodo

Discussed in #5143

Originally posted by Ritesh313 November 24, 2023
I'm getting "<module_name>"is not accessed warnings from Pylance in my python file while importing all the stdlib modules.
The warning description just says:
conda_env_location/lib/python3.9/<module_name>.py" is overriding the stdlib module "<module_name>"

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
Platform: VS code
Environment: Conda
Python version: 3.9.7

Here's a screenshot of the warning:
image

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingfixed in next version (main)A fix has been implemented and will appear in an upcoming version

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions