在 Ubuntu 14.04 中使用 pip install bcrypt 安装 Python Bcrypt 时出错

Error Installing Python Bcrypt using pip install bcrypt in Ubuntu 14.04

请帮我弄清楚为什么我无法在我的系统中安装 bcrypt 运行 ubuntu 14.04

错误:

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

我认为错误不是因为警告,因为这不是行 Could not find a version that satisfy the requirement bcyrpt (from versions: ) 所说的。

请告诉我问题是什么,为什么会出现这个问题?以及如何解决这个问题?

我已经尝试过的事情:

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

注意: 我已经按照要求安装了所有依赖项,并在 github 存储库中提到,例如 libffi-dev、libssl-dev 等。我也是运行 我在 AWS t2.micro 实例中的实例具有 1 GB Ram 运行 ubuntu 14.04。仅供补充信息。

这实际上是一个非常简单的错误。根据您发布的控制台日志,您拼写 bcrypt 错误。您可能还需要 运行 它作为 sudo。

sudo pip install bcrypt