user3579972
user3579972

Reputation:

pip install django-twilio Error installation

Trying to install django-twilo using pip on ubuntu machine Getting error referring doc

workspace/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
  SNIMissingWarning
/home/rahul/workspace/repository/inteliexam_workspace/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Using cached django_twilio-0.8.0-py2.py3-none-any.whl
Collecting django-phonenumber-field>=0.6 (from django-twilio)
  Using cached django-phonenumber-field-1.3.0.tar.gz
Could not import setuptools which is required to install from a source distribution.
Traceback (most recent call last):
  File "/home/rahul/workspace/repository/inteliexam_workspace/local/lib/python2.7/site-packages/pip/req/req_install.py", line 387, in setup_py
    import setuptools  # noqa
  File "/home/rahul/workspace/repository/inteliexam_workspace/local/lib/python2.7/site-packages/setuptools/__init__.py", line 12, in <module>
    import setuptools.version
  File "/home/rahul/workspace/repository/inteliexam_workspace/local/lib/python2.7/site-packages/setuptools/version.py", line 1, in <module>
    import pkg_resources
  File "/home/rahul/workspace/repository/inteliexam_workspace/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 70, in <module>
    import packaging.version
ImportError: No module named packaging.version

Upvotes: 0

Views: 417

Answers (2)

Giordano
Giordano

Reputation: 5570

The right command that you should use, as you can see from the doc is

pip install django-twilio

and not

pip install django-twillio

EDIT

To fix your problem you can run this command

pip install -U setuptools

and after run again

pip install django-twilio

Upvotes: 1

Mihai Zamfir
Mihai Zamfir

Reputation: 2166

You have a typo. It is django-twilio, not django-twillio

Upvotes: 1

Related Questions