0

I wanna write a python code to create a twitter bot app in Visual Studio Code. After importing tweepy it is not recognised. I searched tweepy in extentions but nothing was found.

Questioner
  • 662
  • 1
  • 10
  • 26

1 Answers1

1

You don't add Python modules as extensions to VS Code, they are installed into your current Python environment (typically via pip from the command line). You might just need to select your Python interpreter from VS Code, however.

To do this, open the command pallet w/ Ctrl+Shift+P (or Cmd+Shift+P if you're on a Mac), type in Python interpreter and hit Enter. You should be able to select one from there.

If you have multiple versions of Python on your machine, make sure you select the one for which you ran pip install tweepy.

If you haven't already installed tweepy, you'll want to run the command pip install tweepy first.

JRiggles
  • 4,847
  • 1
  • 12
  • 27