使用 twilio 一直报错,求大牛们看下哪里出错了

2017-01-24 11:42:31 +08:00
 sunweiguo02
完全没有头绪是怎么回事,谷歌也没查到什么。。。。。。

代码如下:
from twilio.rest import TwilioRestClient

account_sid = "AC1051ad791e2819985cbf04e********"
auth_token = "76f04e0a842f4a1b77162345a*******"
client = TwilioRestClient(account_sid, auth_token)

message = client.messages.create(
body="Hello there!",
from_="+1414622****",
to="+861860963****")

print message.sid


报错:
Traceback (most recent call last):
File "C:\Users\sunwe\Desktop\WorkPlace of Python\Lesson03\send_text.py", line 3, in <module>
import twilio
File "C:/Users/sunwe/Desktop/WorkPlace of Python/Lesson03\twilio.py", line 3, in <module>
AttributeError: 'module' object has no attribute '__version__'
3239 次点击
所在节点    Python
2 条回复
rust
2017-01-24 15:19:20 +08:00
你知道为什么没有人回答你吗?

因为 Google 一下就能得出答案
sunweiguo02
2017-01-24 19:09:39 +08:00
@rust 我就是没谷歌到才发帖,有什么问题?

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/336616

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX