Created
November 27, 2018 01:45
-
-
Save Casxt/99cd3b3358b9d439760396454ea0369b to your computer and use it in GitHub Desktop.
python3.6 编译
This file contains 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
yum install gcc openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel | |
./configure --enable-ipv6 --enable-optimizations --with-ensurepip --enable-shared --prefix="/usr/local/python3.6.7" | |
# --with-optimizations --with-lto 是编译时的优化选项 --with-valgrind 不明 --prefix="/usr/local" --enable-profiling | |
#不指定path,安装完成后python会自动把自己加到系统目录里 | |
sudo make -j4 | |
sudo make install | |
#在/etc/ld.so.conf.d下创建python3.conf写入/usr/local/python3.6.7/lib | |
ldconfig |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment