Import "RPA.Browser.Selenium" could not be resolved Pylance

i m writing python bot and it works well
The only issue that Pylance can’t resolve RPA libraries.
tried to google around but not luck yet.

Anyone fact to this issue or any suggestion?

image

If you are using Visual Studio Code with our extensions then you could use command Set Pythonpath based on robot.yaml . I am guessing that pylance gives that warning because your Python environment is not the one determined by robot.yaml (ie. conda.yaml).

1 Like

thanks @mika
i set pythonpath from pylance and it works

1 Like