sara
sara

Reputation: 199

python can not import tweepy library

I tried to import tweepy library but i get this error message:

Traceback (most recent call last):
  File "<pyshell#4>", line 1, in <module>
    import tweepy
ImportError: No module named 'tweepy'

and above in the python file i get this message, i don't know if these two messages are related

Python 3.5.0 (v3.5.0:374f501f4567, Sep 12 2015, 11:00:19) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "copyright", "credits" or "license()" for more information.
>>> WARNING: The version of Tcl/Tk (8.5.9) in use may be unstable.
Visit http://www.python.org/download/mac/tcltk/ for current information.

Upvotes: 0

Views: 2393

Answers (2)

Hemanta Nandi
Hemanta Nandi

Reputation: 151

Try

python -m pip install tweepy

Upvotes: 1

ham_string
ham_string

Reputation: 139

You probably don't have installed tweepy in the right place. Try

pip3 install tweepy

I had the same problem and this saved it for me.

Upvotes: 1

Related Questions