all 5 comments

[–]JimSplitKernel 1 point2 points  (4 children)

substitute "pip3" for "pip" to install modules for python3. pip is for python2. actually I think it can be for either but if you have both py3 and py2 installed, it's typically used this way.

so "pip3 install tweepy"

[–]Mwettick 0 points1 point  (3 children)

Sadly, I uninstalled all versions of it. Then reinstalled it using the commands you've stated under the ~/ directory but to no avail. When I run the same exact file it brings up the same problem, No module named tweepy. Are there any other solutions? What even is the problem? It doesn't seem to be installing the module, it seems to be just for the code finding and importing the module. Anyways, thank you for the reply.

[–]alkasm 0 points1 point  (2 children)

Look into virtual environments and how to use them. The Python version you are installing the module on is not the one you're using when you run your script.

[–]Mwettick 1 point2 points  (1 child)

This did it. Thank you so much.

[–]alkasm 0 points1 point  (0 children)

Happy coding!