编译linux python

//安装gcc
sudo apt-get install software-properties-common python-software-properties sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update sudo apt-get install gcc-7

//安装make
apt-get install gcc automake autoconf libtool make

官网下载python源文件

编译:
1. ./configure --with-static-libpython
2.make
3.make altinstall








 

posted @ 2022-03-15 17:09  KeepSmiling_me  阅读(40)  评论(0)    收藏  举报