簡體   English   中英

在Ubuntu 14.04中使用pip install bcrypt安裝Python Bcrypt時出錯

[英]Error Installing Python Bcrypt using pip install bcrypt in Ubuntu 14.04

請幫我弄清楚為什么我無法在運行ubuntu 14.04的系統中安裝bcrypt

錯誤:

somehostname@somehost:~$ 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等。此外,我還在具有1 GB Ram運行ubuntu 14.04的AWS t2.micro實例中運行實例。 僅用於其他信息。

這實際上是一個非常簡單的錯誤。 根據您發布的控制台日志,您將bcrypt拼寫錯誤。 您可能還需要以sudo的身份運行它。

sudo pip install bcrypt

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM