python无法导入tweepy库



我试图导入tweepy库,但收到以下错误消息:

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

在上面的python文件中,我得到了这条消息,我不知道这两条消息是否与相关

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.

您可能没有在正确的位置安装tweepy。尝试

pip3 install tweepy

我遇到了同样的问题,这为我节省了时间。

尝试

python -m pip install tweepy

最新更新