Quantcast
Viewing all articles
Browse latest Browse all 1277

Python • Pylance: can import csv, but NOT sys OR os modules ... WTHey?

Totally new to Python, a bit lost in the plethora of run-time environments... using .venv inside vscode,
and to read/write csv data from/to files, the line: import csv works fine...

Now I want to read in command line parameters so added line: import os but the 'os' has dashed white underline,
and moving cursor there pops window ["os" is not accessed Pylance] (same with import sys)

Similarly, the line: from . import func_name yields ["func_name" is not accessed Pylance] {all .py files in same local dir}

What undoubtedly SIMPLE ingredient am I missing?

Also, in my C-language projects, vscode auto-magically creates a .vscode directory (amongst others), but
NOT SO in its Python guise... again, I'm sure it's simple...

Thanks in advance!

Statistics: Posted by Fixizin — Wed Dec 20, 2023 12:49 am



Viewing all articles
Browse latest Browse all 1277

Trending Articles