'Import "nltk.stem" could not be resolved, Import "nltk.corpus" could not be resolved, Import "nltk" could not be resolved

I am working on a Resume Ranking project, it's properly running but giving lots of warning messages in the problem box. i am using vs code, and have installed all the required modules and libraries the project is running but it gives warnings in the problem box. I have imported these modules in my search.py:-

import string
import re
from nltk.stem import LancasterStemmer, WordNetLemmatizer
from nltk.corpus import stopwords
from nltk import word_tokenize, sent_tokenize
from bs4 import BeautifulSoup
import inflect
import contractions
import nltk
import glob
import os
import warnings
import textract
import requests
from flask import (Flask, json, Blueprint, jsonify, redirect, render_template, request, url_for)
from gensim.summarization import summarize
from sklearn.feature_extraction.text import CountVectorizer, TfidfVectorizer
from sklearn.neighbors import NearestNeighbors
from werkzeug.utils import secure_filename
import pdf2txt as pdf
import PyPDF2
from autocorrect import spell 

The warning messages in the problem box

Import "nltk.stem" could not be resolved
Import "nltk.corpus" could not be resolved
Import "nltk" could not be resolved
Import "bs4" could not be resolved from source
Import "inflect" could not be resolved
Import "contractions" could not be resolved
Import "nltk" could not be resolved
Import "textract" could not be resolved
Import "gensim.summarization" could not be resolved
Import "sklearn.feature_extraction.text" could not be resolved
Import "sklearn.neighbors" could not be resolved
Import "PyPDF2" could not be resolved
Import "autocorrect" could not be resolved 


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source