在mac上安装一些python库报错,如下:
SWIG/_m2crypto.i:54: Error: Unable to find 'openssl/opensslv.h'
SWIG/_m2crypto.i:60: Error: Unable to find 'openssl/safestack.h'
SWIG/_evp.i:12: Error: Unable to find 'openssl/opensslconf.h'
SWIG/_rc4.i:5: Error: Unable to find 'openssl/opensslconf.h'
SWIG/_ec.i:7: Error: Unable to find 'openssl/opensslconf.h'
error: command 'swig' failed with exit status 1
或:
build/temp.macosx-10.11-intel-2.7/_openssl.c:493:10: fatal error: 'openssl/opensslv.h' file not found
#include <openssl/opensslv.h>
^
1 error generated.
error: command 'cc' failed with exit status 1
此原因产生,应该是openssl版本过低或位置未找到。
查看版本命令:openssl version
版本升级:
brew update
brew install openssl
安装结束后会显示安装位置,如:/usr/local/Cellar/openssl/1.0.2o_2: 1,792 files, 12.2MB
安装成功后进行软链:
sudo rm /usr/bin/openssl
sudo ln -s /usr/local/Cellar/openssl/1.0.2o_2/bin/openssl /usr/bin/openssl
此时openssl升级完成。
但是在进行软件安装时还是会报上面错误,说明openssl正确了,但是查询的openssl文件位置未变。执行如下命令安装:
sudo env LDFLAGS="-L$(brew --prefix openssl)/lib" CFLAGS="-I$(brew --prefix openssl)/include" SWIG_FEATURES="-cpperraswarn -includeall -I$(brew --prefix openssl)/include" pip install pyOpenSSL==17.1.0
相关推荐
1.【Python3.8.1安装包Windows64位】python-3.8.1-amd64.exe 2.【openssl安装包Windows64位】Win64OpenSSL-1_1_1d.exe 3.【https://pan.baidu.com/s/1XNS3SYjqrbf8RTVS5dvMqQ】百度网盘里也有,不用提取码,...
如果需要安装到venv,不需要重新执行python setup.py build_amalgamation, 直接执行/path_to_venv/python.exe setup.py install,具体路径根据自己的venv决定 (sqlcipher不是官网的,是在官网下载后添加了一些...
linux python-3.6.5与openssl-1.1.1源码及安装教程!安装文件官网下载很慢,可以通过csdn下载,本安装版本为3.6.5,64位安装器
该文件我是用来解决使用Python时出现“pip is configured wih locations that require TLS/SSL,however the ssl module in Python is not available."报错的,现在分享一下。
SSL 过程中,需要使用SSL头文件以及DLL,LIB库文件,因此个人整理这里共享在这里,解决大家自己动手编译SSL的痛苦过程 具体文件如下: libeay32.dll, libeay32.lib libssl32.dll, libssl32.lib 以及 openssl头文件
linux python3.10安装包及 openssl-1.1.1升级包
软件安装报错: Traceback (most recent call last): ...ImportError: DLL load failed while importing _ssl: 找不到指定的模块。 原因:软件打包将openssl库打包进去,缺少插件 安装该插件即可解决问题
windows 64位openssl安装包,openssl最新的稳定版本是1.1.1系列.
主要介绍了python加密解密库cryptography使用openSSL生成的密匙加密解密,需要的朋友可以参考下
openssl库文件libcrypto.a、libssl.a静态库文件,在编译iOS 版本中的ijkplayer中使用过,值得下载!
total commander 8 x64在连接ftps或者https的时候可能会提示“找不到openssl库文件”,把这个下下来解压到tc8 x64的安装目录下就可以解决了。
将文件解压C:\Users\admin\AppData\Local\OpenSSL cmder alias 环境配置! set PATH=%ConEmuBaseDir%\Scripts;%PATH%;C:\Users\admin\AppData\Local\OpenSSL 解决python3.7 windows 错误
iOS下的openssl安装文件以及安装说明
x64和x86的debug/release版动态库
由Visual Studio 2015编译生成的,包括openssl库生成的静态库版本(32位/64位)、动态库版本(32位/64位); 1、静态库版本生成文件:头文件、libcrypto.lib、libssl.lib 2、动态库版本(32位)生成文件:头文件、...
C++的OpenSSL支持库(含win32和x64),安装后目录下有include文件夹和dll以及lib文件 免编译使用!
1、安装依赖包yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc* make -y 2、下载python安装包wget ...
基于openssl的ftp文件传输系统源码基于openssl的ftp文件传输系统源码基于openssl的ftp文件传输系统源码基于openssl的ftp文件传输系统源码基于openssl的ftp文件传输系统源码基于openssl的ftp文件传输系统源码基于...
【安装部署】-linux安装python3.10教程 默认linux 系统上就有python2 存在,我们不要去删除他,否则yum 和防火墙等无法使用,可以通过如下命令查看 python -V 一、安装依赖包 yum install -y gcc patch libffi-...