this is my import codes, and I pip install all the files I should:
from apiclient import errors, discovery
import oauth2client
from oauth2client import client, tools, file
import httplib2
And this is the error for all of them:
Import "httplib2" could not be resolved from sourcePylancereportMissingModuleSource
Import "oauth2client" could not be resolvedPylancereportMissingImports
Import "apiclient" could not be resolvedPylancereportMissingImports
I use windows system. Please help me fix these problems.
First make sure you have installed all the packages in the code using pip
command. You can check package installation information with pip show package_name
.
Then follow these steps:
Open the command palette with Ctrl+Shift+P ( Or click the python version in the lower right corner of the interface ).
Type and select Python:Select Interpreter.
Choose the correct interpreter.
This will solve your problem.