-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot install cryptography #2280
Comments
cffi 1.1 does not appear to have been properly installed (possibly due to a pip issue?). Try |
This worked perfectly. Huge thanks for the quick answer. But why is this not mentioned in https://cryptography.io/en/latest/installation/ ? Also: Why is the installation instructions not in the readme if it is not trivial at all? The quickstart doesn't help at all in the README if one cannot install this software so easily. Even PyCrypto can be installed better, makes me want to switch again or to switch the language as a whole because pip/setuptools is a huge pain in the ass (also the whole python3 and python2 thing)... /rant |
I ran into this issue when trying to install setup.py:
buildout.cfg:
When trying to
Turned out that this was caused by an old |
I have pre-installed by apt-get install "python-{package_name}" and pip does not override preinstalled version. I make apt-get remove each of one and reinstall by pip. |
Fix: 1. OS-level packages `libffi-dev` and `libssl-dev`/`openssl-dev` should be installed explicitly since Ansible 2.0.2.0(???). 2. Python package cffi should be installed explicitly since Ansible 2.0.2.0(???). 3. add '--fix-missing' for apt. @see boxcutter/ubuntu#62 @see pyca/cryptography#2280
Currently setup.sh keeps failing for me on a Debian 8 VM. Turns out the error is similar to here pyca/cryptography#2280, which is due to apt installed of cffi version being less than 1.1. Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-X8h31p-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/cryptography Storing debug log for failure in /home/nikolai/.pip/pip.log This PR also fixes #261 #267 #268 setup.sh script now installs libssl-dev #261 added cffi to requirements.txt file which fixes the error in pyca/cryptography#2280 and #268
Followed instructions here: http://stackoverflow.com/questions/22073516/failed-to-install-python-cryptography-package-with-pip-and-setup-py
Cannot install. This module is completely useless if not clear installation instructions are given...
Issues:
The text was updated successfully, but these errors were encountered: