我在Windows7上成功地用Python3.4安装了tweepy2。但是当我输入import tweepy (在Python的命令行中)时,它会给我以下消息:
Python 3.4.2 (v3.4.2:ab2c023a9432, Oct 6 2014, 22:15:05) [MSC v.1600 32 bit (In
tel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import
我刚刚为python包tweepy运行了一个pip install,但是当我尝试在Jupyter中启动时,我收到了一个'No Module named tweepy‘错误。 我假设这是因为当我打开anaconda包列表时,tweepy注册为pypi,但我不确定在我的笔记本中有什么解决方法可以让它工作。 Anaconda package list
每当用户登录到我的应用程序并进行搜索时,我就必须启动一个流API来获取他所需要的数据。
这里是我的流API类
import tweepy
import json
import sys
class TweetListener(tweepy.StreamListener):
def on_connect(self):
# Called initially to connect to the Streaming API
print("You are now connected to the streaming API.")
def
我是python (和一般编程)的新手,我正在尝试编写一个脚本来收集tweet。我无法使用脚本打印文件中的推文。tweets出现在空闲中,并显示错误"failed ondata,global name 'saveFile‘is not defined“,并且它们不会打印到文件中
我运行了以下代码:
from tweepy import Stream
from tweepy import OAuthHandler
from tweepy.streaming import StreamListener
import time
ckey = ???
csecret = ???
at
我正在尝试在我的Unix帐户上运行Tweepy client for Twitter。每当我尝试使用以下命令运行Tweepy的安装程序时:
python setup.py
我得到了这个错误:
Traceback (most recent call last):
File "setup.py", line 3, in ?
from setuptools import setup, find_packages
ImportError: No module named setuptools
现在我在一些论坛上搜索,发现我需要添加安装工具文件。我找到的文件
setuptools-0.6
我正在尝试安装Tweepy模块,但它抛出了一个错误。下面是我在命令提示符中的代码,
pip install tweepy
这是我的错误,
Could not find a version that satisfies the requirement tweepy (from versions: ) No matching distribution found for tweepy
我使用的是Python版本3.7,64位。请帮助我理解为什么会发生这种情况。
谢谢和问候,Sanjay
背景:,我正在跟踪,试图使用调试和运行我的python脚本。根据这样的建议,我在终端上尝试了/usr/bin/python /Users/eer/Desktop/myscript.py。
问题:,但是,我得到一个错误:ImportError: No module named tweepy。因此,我尝试了pip install tweepy,得到了以下内容:Requirement already satisfied: tweepy in /Users/eer/anaconda/lib/python2.7/site-packages。因此,我似乎有推特,但当我/usr/bin/python /Us