ubuntu 下pip安装报错: openssl/opensslv.h: No such file or directory
安装python的 Django ,pymysql等出错
问题截图:
问题描述: openssl/opensslv.h: No such file or directory
build/temp.linux-x86_64-3.5/_openssl.c:498: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
问题解决:
检查openssl安装情况,一般都是已安装的
错误提示找不到 openssl/opensslv.h,这是openssl源文件,二进制安装找不到此文件
centos:
yum install openssl-devel
ubuntu: 安装依赖包
sudo apt-get install libssl-dev