2017-04-20 8 views
0

あなたはタイプミスを持ってdocはジャンゴ・twilioエラーインストール

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 

答えて

1

参照エラー を取得Ubuntuマシン のPIPを使用してジャンゴ・twiloをインストールしようとすると、インストールPIP。あなたがdocから見ることができるように、それは、あなたが使用する必要があります右のコマンドではありませんdjango-twillio

+0

、唯一まだエラー –

1

django-twilioであることに

pip install django-twilio 

なく

pip install django-twillio 

EDIT

です問題を修正してこのコマンドを実行してください

それはタイプミスではないです
pip install -U setuptools 

し、実行した後、再び

pip install django-twilio 
+0

イムがインストールピップ」を実行するために –

+0

を示す「ジャンゴ・twilioをインストールピップ」を使用して、完全なエラーメッセージ –

+1

試して完全なエラーを追加参照-U setuptools "を実行してdjango-twilioをインストールするコマンドを再実行してください – Giordano

関連する問題