I could able to fix this issue. This is the process I followed in VS Code.
Install Python latest version in your local machine. Once completed Open VS Code and next press Ctrl-Shift-p to select Python interpreter. Next Choose default python.exe location C:\Users\username\AppData\Local\Programs\Python\Python39\python.exe
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.