我有一个代码可以使用Twilio在ironpython2.7内部实现。但是,我尝试了很多事情,但它们似乎都失败了。例如,我从python网站包中复制了Twilio模块,并将其位于ironpython目录中:C:\ Program Files(x86)\ IronPython 2.7 \ Lib
脚本
from twilio.rest import Client
# Your Account Sid and Auth Token from twilio.com/console
# DANGER! This is insecure. See http://twil.io/secure
account_sid = '#################'
auth_token = '###########'
client = Client(account_sid, auth_token)
message = client.messages \
.create(
body="this an autmated sms testing twilio's {} and {}
api".format("a","b"),
from_='+#########',
to='+##########'
)
print(message.sid)
我遇到以下错误:
Warning: IronPythonEvaluator.EvaluateIronPythonScript operation failed.
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "C:\Program Files (x86)\IronPython 2.7\Lib\twilio\rest\__init__.py",
line 12, in <module>
File "C:\Program Files (x86)\IronPython
2.7\Lib\twilio\base\exceptions.py", line 4, in <module>
ImportError: No module named six
有关如何解决此问题的任何想法?
提前谢谢