Skip to content

Instantly share code, notes, and snippets.

@Casxt
Created November 27, 2018 01:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Casxt/99cd3b3358b9d439760396454ea0369b to your computer and use it in GitHub Desktop.
Save Casxt/99cd3b3358b9d439760396454ea0369b to your computer and use it in GitHub Desktop.
python3.6 编译
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