1. 程式人生 > >error: command ‘x86_64-linux-gnu-gcc‘ failed

error: command ‘x86_64-linux-gnu-gcc‘ failed

build com inux with exit crypt libssl eve evel

在linux服務器中 安裝paramiko模塊報錯如下:
build/temp.linux-x86_64-3.5/_openssl.c:493:30: fatal error: openssl/opensslv.h: No such file or directory
compilation terminated.
error: command ‘x86_64-linux-gnu-gcc‘ failed with exit status 1

----------------------------------------

Can‘t rollback cryptography, nothing uninstalled.

首先檢查openssl和openssl-devel是否正常安裝(Ubuntu不需要安裝openssl-devel)
再檢查libssl-dev是否安裝
都安裝之後再pip3 install paramiko模塊

error: command ‘x86_64-linux-gnu-gcc‘ failed