Last active
April 24, 2017 03:33
-
-
Save bookiu/7cdf1c3d1856cb243011cb189465430f to your computer and use it in GitHub Desktop.
ubuntu下编译安装python3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install -y libreadline-dev liblzma-dev libncurses5-dev libsqlite3-dev libbz2-dev zlib1g-dev libssl-dev libgdbm-dev | |
./configure --prefix=/usr/local/python3 --enable-shared --disable-ipv6 | |
make -j 8 | |
make install | |
echo "/usr/local/python3/lib" >> /etc/ld.so.conf.d/python3.conf | |
ldconfig -v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment