swoole / phpy

Connecting the Python and PHP ecosystems together
Apache License 2.0
542 stars 44 forks source link

docker内的liunx的python安装方式,能来个详细点的教程吗 #31

Closed hgc357341051 closed 10 months ago

hgc357341051 commented 11 months ago

docker容器内的 Alpine Linux 系统的python安装方式,能来个详细点的教程吗,看的无从下手的样子,我用的是apk add python3命令一键安装的 ,安装路径是/usr/bin/python3,之后:./configure --with-python-dir=/usr/bin/python3,make一直报错 image image

he426100 commented 11 months ago

用 debian/ubuntu 吧,alpine貌似不行,你截图里的报错是因为你没有 apk add python3-dev,编译命令参考:./configure --with-python-config=/usr/bin/python3-config

hgc357341051 commented 11 months ago

用 Debian/Ubuntu 吧,alpine貌似不行,你截图里的报错是因为你没有 ,编译命令参考:apk add python3-dev``./configure --with-python-config=/usr/bin/python3-config

很多人,很多项目,包括我,都是用了alpine容器,因为这个精简

matyhtf commented 10 months ago

使用 --with-python-config=/usr/bin/python3-config