请帮助我解释为什么我无法在运行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(来自版本:) 说。
请告诉我这是什么问题,为什么会出现这个问题?以及如何解决这个问题?
我已经尝试过的事情:
pip install --pre bcrypt
pip install bcrypt==2.0.0
注意:我已根据需要安装了所有依赖项,并在github repo中提到过,如libffi-dev,libssl-dev等。此外,我在AWS t2.micro中运行我的实例运行ubuntu 14.04的1 GB Ram实例。仅供参考。
答案 0 :(得分:3)
这实际上是一个非常简单的错误。根据您发布的控制台日志,您拼写错误bcrypt
。您可能还需要将其作为sudo运行。
sudo pip install bcrypt