1.下载stackless
以python 2.65 为例,版本不同的可相应修改
# cd /usr/src
# wget http://www.stackless.com/binaries/stackless-265-export.tar.bz2
# tar jxvf stackless-265-export.tar.bz2
2.编译python-2.6.5-stackless,安装到/opt目录
# cd /usr/src/python-2.6.5-stackless/
# ./configure --prefix=/opt/stackless --with-readline --with-zlib=/usr/include
# make
# make install
3.生效
# export PATH=/opt/stackless/bin:"$PATH"
或者在 /etc/profile 末尾加上该内容,source /etc/profile 以生效
来源:oschina
链接:https://my.oschina.net/u/216880/blog/285958