import workspace2
workspace2.a_func()
This works and runs completely fine, however it underlines workspace2
as unresolved and leaves the function un-coloured.
import workspace2
workspace2.a_func()
This works and runs completely fine, however it underlines workspace2
as unresolved and leaves the function un-coloured.
Add
"python.analysis.extraPaths": ["${workspaceFolder}/python"],
in the settings.json file.
You can refer to here for more detail
I solved it by realizing i had two versions of Python 3 installed. I uninstalled the older version and now it can find the directories for any modules perfectly well.
You can check your python versions in windows by opening Command Prompt and typing py -0 Then uninstalling from contorl panel.