How to build Python 3.x.x from a tarball file?



You can download Python 3.x.x tarball from:

https://www.python.org/downloads/release/python-3106/

Extract the source using "tar zxvf Python-3.x.x.tgz"

in windows, read the Quick Start Guide in PCbuild\readme.txt


in Linux, following below:


sudo apt-get install build-essential checkinstall sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev \ libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev



cd /usr/src
sudo tar xzf Python-3.7.0.tgz
cd Python-3.7.0 sudo ./configure --enable-optimizations sudo make altinstall
' make altinstall is used to prevent replacing the default python binary file /usr/bin/python.


python3.7 -V Python-3.7.0

留言

這個網誌中的熱門文章

10.29 Slow HTTP Denial of Service Attack (Slowloris)

在CentOS 8 Stream安裝NTP Client與設定時區

Update Pattern of TrendMicro AntiVirus Software - ServerProtect