在pex文件中构建相同的env在python3中失败,但在python2上可以工作

2024-10-03 00:26:54 发布

您现在位置:Python中文网/ 问答频道 /正文

我有一个非常基本的python环境,请求就是我的依赖项。在python2中,它可以很好地构建到自己的pex文件中,我可以毫无问题地打开REPL。在python3环境中,我在运行pex -r <(pip freeze) -o my_application.pex时遇到这个错误

build/temp.macosx-10.14-x86_64-3.7/_openssl.c:498:10: fatal error: 'openssl/opensslv.h' file not found
#include <openssl/opensslv.h>
         ^~~~~~~~~~~~~~~~~~~~
1 error generated.
error: command 'clang' failed with exit status 1

我遗漏了什么吗?我的印象是,车轮文件主要照顾必要的二进制文件。你知道吗


Tags: pip文件build环境applicationmy错误error