如何使用源文件将Python安装到自定义目录

sdm*_*_gr 4 python installation

我想在 Redhat 服务器已预安装的 Python 之外再构建 Python 2.7.1。

我需要修改/使用哪些选项才能在 ie /opt/Python27 下构建 Python

我将不胜感激任何帮助!

wkl*_*wkl 6

配置为:

./configure --prefix=/opt/Python27

一般来说,您只需./configure --help获取允许为该配置脚本设置的所有选项的列表即可。