Import "transformers" could not be resolved
### System Info

**I have tried different python versions 3.7 and 3.11**

![Screenshot 2023-03-16 at 13 18 32](https://user-images.githubusercontent.com/2458760/225571262-7deb343d-9d76-4d14-8a24-1c75da0276fa.png)


### Who can help?

_No response_

### Information

- [ ] The official example scripts
- [ ] My own modified scripts

### Tasks

- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [ ] My own task or dataset (give details below)

### Reproduction

from transformers import pipeline

classifier = pipeline("sentiment-analysis")

res = classifier ("I've been waiting for a Hugging Face course my whole life.")

print (res)

### Expected behavior

should work
Hi @givik, thanks for raising this issue. 

This isn't related to transformers - it's to do with vscode and the environment. 

The error shown is coming from PyLance, and is indicating that the environment it's looking in doesn't have `transformers` installed. Please make sure transformers [is installed](https://huggingface.co/docs/transformers/installation) and PyLance is looking in the [correct place](https://code.visualstudio.com/docs/python/environments).<|||||>This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the [contributing guidelines](https://github.com/huggingface/transformers/blob/main/CONTRIBUTING.md) are likely to be ignored.<|||||>i get the same issue