gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-04 00:54:59 28 4
gpt4 key购买 nike

请帮我弄清楚为什么我无法在运行 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

我认为错误不是因为警告,因为那不是行 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

关于python - 在 Ubuntu 14.04 中使用 pip install bcrypt 安装 Python Bcrypt 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35529680/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com