Search code examples
pythonvisual-studio-codeimporterrorpylint

library importing issues in vs code


import errors in python in vs code

"i tried some imports for a chat bot project in vs code but its always shows some errors that shown in the picture below. looking for solutions ,thank you."

this picture shows the error that i seen after importing some libraries in python using vs code.

picture

looking for solutions ,thank you.


Solution

  • You probably haven't selected the right interpreter.

    1) Select Interpreter command from the Command Palette (Ctrl+Shift+P)

    2) Search for "Select Interpreter"

    3) Select the installed python directory

    Ref:- https://code.visualstudio.com/docs/python/environments#_select-an-environment