Windows 7中的Twitter Twitter软件包无效

时间:2013-07-22 17:03:33

标签: python twitter twitter-oauth

我已经使用Twitter软件包在Windows 7机器上安装了Python 3.3 ...但它抛出了语法错误:

C:\Python33\dist\python-oauth2-master>python setup.py build
  File "setup.py", line 18
    print "unable to find version in %s" % (VERSIONFILE,)
                                       ^
SyntaxError: invalid syntax

现在解决了上述错误...感谢您的帮助!!!

我尝试使用Python 2.7但现在收到此错误...

>>> import twitter
>>> twitter_search = twitter.Twitter(domain="search.twitter.com")
>>> trends = twitter_search.trends()

File "C:\Python27\lib\urllib2.py", line 1184, in do_open
raise URLError(err)

URLError: <urlopen error 

A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond>

我很感激任何帮助。

0 个答案:

没有答案