嗨,我是 python 新手,我收到了这个错误,但我已经安装了 twitter,但它给出了这个错误
import twitter
api=twitter.Api()
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
api=twitter.Api()
AttributeError:'module' object has no attribute 'Api'
我不知道这个错误,因为我几乎每个包都与 twitter 相关
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
api = twitter.Api()
AttributeError: 'module' object has no attribute 'Api'
当我给出这个命令 python setup.py install_data 它给出像这样运行 install_data 的错误
Traceback (most recent call last) :
file "setup.py" ,line 47 , <module>
""" ,
File "C:\python26\lib\distutils\core.py" ,line 152 , in setup
dist.run_commands()
File "C:\python26\lib\distutils\dist.py" ,line 975 , in run_commands
self.run_command(cmd)
File "C:\python26\lib\distutils\dist.py" ,line 995 , in run_commands
command_obj.run
File "C:\python26\lib\distutils\command\install_data.py" , line 44 in run
For f in self.data_files