mac m2编译 python3.7.6

下载

https://www.python.org/ftp/python/3.7.16/Python-3.7.16.tgz

编译

tar -zxvf Python-3.7.16.tgz
cd Python-3.7.16.tgz
./configure --prefix=/usr/local/python3.7.16 --enable-optimizations
make 
make install

ln -s /usr/local/python3.7/bin/python3.7 /usr/bin/python3
ln -s /usr/local/python3.7/bin/pip3.7 /usr/bin/pip3
posted @ 2023-02-07 09:48  vx_guanchaoguo0  阅读(82)  评论(0编辑  收藏  举报