Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error Installing Python Bcrypt using pip install bcrypt in Ubuntu 14.04

Please help me figure our why am I unable to install bcrypt in my system running ubuntu 14.04

Error :

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

I think the error is not because of the warnings, because that is not what the line Could not find a version that satisfies the requirement bcyrpt (from versions: ) says.

Please tell me what is the issue and why is this problem occurring? And how to solve this problem?

Things I have tried already:

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

NOTE: I have already installed all the dependencies as required and mentioned in the github repo like libffi-dev, libssl-dev, etc. Also I am running my instance in an AWS t2.micro instance with 1 GB Ram running ubuntu 14.04. Just for additional info.

like image 248
Anirban Roy Das Avatar asked Oct 21 '25 08:10

Anirban Roy Das


1 Answers

It's actually a pretty simple mistake. According to the console log you posted, you're spelling bcrypt wrong. You probably need to run it as sudo as well.

sudo pip install bcrypt
like image 197
Koga Avatar answered Oct 22 '25 22:10

Koga



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!