Import error in twilio

前端 未结 4 1119
说谎
说谎 2020-12-07 02:56

I am having the same problem as this thread regarding twilio-python:

twilio.rest missing from twilio python module version 2.0.8?

However I have the same pr

4条回答
  •  悲&欢浪女
    2020-12-07 03:33

    I had the same issue and it drove me crazy. Finally I figured it out. When you get the error:

    AttributeError: module 'twilio' has no attribute 'version'

    Look 2 lines above and the error is telling you where it expects to find the twilio file. So I moved it from where it was to where it was asking it to be.

    Installed to:

    c:\users\rhuds\appdata\local\programs\python\python37-32\lib\site-packages
    

    Moved it to: Traceback (most recent call last): File "", line 1, in import twilio File "C:\Users\rhuds\AppData\Local\Programs\Python\Python37-32\twilio.py", line 2, in

    Now I can import twilio. Besides that, the only other thing I did was uninstall old versions of Python, but I don't think that really mattered.

提交回复
热议问题