編譯python source

sudo yum install zlib-devel bzip2-devel openssl-devel 
sudo yum install ncurses-devel sqlite-devel readline-devel tk-devel


tar zxvf Python-3.6.8.tgz
cd /home/project/Python-3.6.8
./configure --prefix=/usr/local/python3 --with-ssl --enable-optimizations

make
make install

:'
Q1:如何沒有安裝openssl-devel最後會報
The necessary bits to build these optional modules were not found:
_ssl  
'

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章