aks.py:
from twilio.rest import Client
При выполнении кода выше я получаю сообщение об ошибке:
Traceback (most recent call last):
File "aks.py", line 10, in <module>
from twilio.rest import Client
File "/usr/local/lib/python2.7/dist-packages/twilio/rest/__init__.py", line 14, in <module>
from twilio.http.http_client import TwilioHttpClient
File "/usr/local/lib/python2.7/dist-packages/twilio/http/http_client.py", line 1, in <module>
from requests import Request, Session, hooks
File "/usr/lib/python2.7/dist-packages/requests/__init__.py", line 63, in <module>
from . import utils
File "/usr/lib/python2.7/dist-packages/requests/utils.py", line 24, in <module>
from ._internal_utils import to_native_string
File "/usr/lib/python2.7/dist-packages/requests/_internal_utils.py", line 11, in <module>
from .compat import is_py2, builtin_str, str
File "/usr/lib/python2.7/dist-packages/requests/compat.py", line 46, in <module>
from .packages.urllib3.packages.ordered_dict import OrderedDict
ImportError: No module named ordered_dict
Я пробовал разные вещи, такие как понижение Urllib до 1.23, удаление, переустановка twilio и sudo -H pip2.7 install twilio
- версия Python: Python 2.7.13
- версия для pip: pip 18.1 из /usr/local/lib/python3.5/dist-packages/pip (python 3.5)
- ОС: растяжка Распбиана