1

mac编译python3.7

 1 year ago
source link: https://qidizi.github.io/mac-%E7%BC%96%E8%AF%91-Python-3-7/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

mac编译python3.7

cd src
配置 bash configure --prefix=/-/soft/Python-3.7.4/qidizi/ --enable-shared --enable-shared --disable-ipv6 --with-openssl=/-/soft/openssl-1.0.2s/qidizi/ --with-pydebug --with-assertions --enable-loadable-sqlite-extensions CFLAGS="-I/-/soft/sqlite-autoconf-3290000/qidizi/include/ -I/-/soft/xz/qidizi/include/" LDFLAGS="-L/-/soft/sqlite-autoconf-3290000/qidizi/lib/ -L/-/soft/xz/qidizi/lib/", 如果添加 --enable-profiling 选项,就会出现类似如下错误,大概看了configure逻辑,好像是osx相关,暂未细看,不清楚原因

checking size of size_t... configure: error: in `/Volumes/-/soft/Python-3.7.4':
configure: error: cannot compute sizeof (size_t)
See `config.log' for more details
mac:Python-3.7.4 qidizi$ 

编译 make
安装 make install
操作完成


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK