2016-02-20 175 views
2

请帮我弄清楚我们为什么我无法运行Ubuntu 14.04错误使用PIP安装Python Bcrypt安装bcrypt在Ubuntu 14.04

错误安装bcrypt在我的系统:

[email protected]:~$ 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等。另外我在运行ubuntu 14.04的1 GB RAM的AWS t2.micro实例中运行我的实例。仅用于其他信息。

+0

尝试'须藤PIP安装-U密码pyopenssl NDG-httpsclient pyasn1 urllib3 [安全]' – user2683246

+0

@ user2683246你能解释的原因。其实我已经完成了pyopenssl,ndg-httpsclient并且还注意到我正在使用Python 2.7.6 –

回答

2

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

sudo pip install bcrypt 
+0

真正的拼写错误会让你的时间消失。谢谢。现在解决了。成功安装。 –

+0

没问题,高兴帮忙! – Koga