I have Python 2.7 installed on my computer and have correctly configured the path in vscode, but Pylance still prompts that it cannot find the system functions.
Due to some necessary reasons, I cannot switch to Python 3.x.
If I switch to Python 3 in VSCode, the issue doesn’t occur. I am confident that my Python 2.7 is installed correctly, and the path configuration in VSCode is also accurate. How can I resolve this issue?
2
Answers
The python extension no longer supports python 2.7 as of version 2021.10.
If you install an older version of Pylance as shown here, your problem will be solved.