系统:SUSE linux SP1
参考http://www.linuxidc.com/Linux/2013-06/86119.htm,不同处在于安装setuptools时报错
..... File "/home/local/usr/cp2/lib/python2.6/hashlib.py", line 138, in <module> sha224 = __get_builtin_constructor('sha224') File "/home/local/usr/cp2/lib/python2.6/hashlib.py", line 66, in __get_builtin_constructor import _sha256 ImportError: No module named _sha256
解决方法:下载安装hashlib(https://pypi.python.org/pypi/hashlib),
./configure;make ; make install;
第三点的一些说明
cd /usr/src/ #由于服务器无法访问公网,直接https://pypi.python.org/pypi/readline/2.5.1 下载后传上去 wget http://ipython.scipy.org/dist/readline-2.5.1.tar.gz tar zxvf readline-2.5.1.tar.gz cd /usr/src/readline-2.5.1 #前面手动安装的readline的文件,实际这里也可以cd readline再编译,不过没试 cp /usr/local/lib/{libreadline.a,libhistory.a} readline/ python setup.py install