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

4

请帮我找出为什么我无法在运行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 satisfies the requirement bcyrpt (from versions: )”所说的。请告诉我问题出在哪里,为什么会出现这个问题?如何解决这个问题?
我已经尝试过以下方法:
1. pip install --pre bcrypt 2. pip install bcrypt==2.0.0
注意:我已按照 github 存储库中所需并提及的所有依赖项安装,并且我的实例在运行 ubuntu 14.04 的 AWS t2.micro 实例上,具有 1 GB Ram。这只是额外的信息。

尝试运行以下命令进行安装:sudo pip install -U cryptography pyopenssl ndg-httpsclient pyasn1 urllib3[secure] - user2683246
@user2683246,你能解释一下原因吗?实际上我已经安装了pyopenssl、ndg-httpsclient,而且请注意我正在使用Python 2.7.6。 - Anirban Roy Das
1个回答

5

这其实是一个很简单的错误。根据您发布的控制台日志,您拼错了 bcrypt。您可能还需要以 sudo 权限运行它。

sudo pip install bcrypt

有时候错别字会浪费你的时间。谢谢。问题已解决。安装成功。 - Anirban Roy Das
没问题,很乐意帮忙! - Koga

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接