Error 1:
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python2.7 -c c/_cffi_backend.c -o build/-x86_64-2.7/c/_cffi_backend.o
c/_cffi_backend.c:15:17: fatal error: : No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
reason:
Missing header files and static library packages
Solution:
sudo apt-get install libffi-dev
Error 2:
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c build/-x86_64-2.7/_openssl.c -o build/-x86_64-2.7/build/-x86_64-2.7/_openssl.o -Wconversion -Wno-error=sign-conversion
build/-x86_64-2.7/_openssl.c:28:20: fatal error: : No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
reason:
Missing Python's header files and static library packages
Solution:
sudo apt-get install python-dev
Supplementary knowledge:cryptography error occurred while installing the pip library in Windows Solution
If in the installer, the system prompts an error with cryptography and prompts a message like C:\Users\Administrator\AppData\Roaming\pip
This path prompts the information, then there is a problem with your pip source.
First, open the path file. Generally, the type of file is a hidden file. There are corresponding options for displaying files in the page toolbar of win10.
And in win7, in the Tools-Folder option. Then enter your pip path for example: C:\Users\Administrator\AppData\Roaming\pip
Finally, open the file and write it in
[global]
timeout = 6000
index-url = /simple
trusted-host =
If not, try updating pip and perform the above steps.
The above article solves the error problem of Python installation cryptography is all the content I have shared with you. I hope you can give you a reference and I hope you can support me more.