1.solaris下
1).到www.python.org网站上下载所需要的python版本
2). gunzip Python-x.x.tgz
3). /usr/sfw/bin/gtar –xvf Python-x.x.tar(注意:这里不能用solaris自带的tar命令,否则出错)
4). cd Python-x.x
5). ./configure --prefix=/home/username/xxxxxxxx(该目录为你想安装的目标目录) --with-gcc=gcc
6).make
7).make install
8).说明:一定要指定—with-gcc=gcc参数,否则会出现:"Parser/tokenizer.c", line 1614: Error: Cannot assign void* to char*的错误,这是因为solaris的Sun studio和Python不兼容。