2016-02-20 173 views
2

請幫我弄清楚我們爲什麼我無法運行Ubuntu 14.04錯誤使用PIP安裝Python Bcrypt安裝bcrypt在Ubuntu 14.04

錯誤安裝bcrypt在我的系統:

[email protected]:~$ pip install bcyrpt 
Collecting bcyrpt 

/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:315: 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. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning. 
    SNIMissingWarning 

/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. 
    InsecurePlatformWarning 

    Could not find a version that satisfies the requirement bcyrpt (from versions:) 
No matching distribution found for bcyrpt 

/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. 
    InsecurePlatformWarning 

我覺得錯誤不是因爲警告,因爲那不是行找不到滿足要求的版本bcyrpt(來自版本:)說。

請告訴我什麼是問題,爲什麼會發生此問題?以及如何解決這個問題?

事情我已經試過不已:

  1. pip install --pre bcrypt
  2. pip install bcrypt==2.0.0

注:我已經安裝了所有的依賴關係要求,並在GitHub庫就像提到libffi-dev的,libssl-dev等。另外我在運行ubuntu 14.04的1 GB RAM的AWS t2.micro實例中運行我的實例。僅用於其他信息。

+0

嘗試'須藤PIP安裝-U密碼pyopenssl NDG-httpsclient pyasn1 urllib3 [安全]' – user2683246

+0

@ user2683246你能解釋的原因。其實我已經完成了pyopenssl,ndg-httpsclient並且還注意到我正在使用Python 2.7.6 –

回答

2

這實際上是一個非常簡單的錯誤。根據你發佈的控制檯日誌,你的拼寫錯誤bcrypt。您可能還需要將其作爲sudo運行。

sudo pip install bcrypt 
+0

真正的拼寫錯誤會讓你的時間消失。謝謝。現在解決了。成功安裝。 –

+0

沒問題,高興幫忙! – Koga