UbuntuKylin14LTS自带了python2.7.6和python3.4,默认的'python'命令是指向python2.7.6,而'python3'命令指向python3.4
从Django官网下载了后,执行: python3 setup.py install出现ImportError: No module named setuptools
于是安装setuptools模块,又遇到Erro:'execfile' is not defined
解决方案:
1,python3的依赖检查: apt-get build-dep python3
2,安装zlib: apt-get install zlib1g-dev
3,安装setuptools,解压下载的setuptools,在该目录下执行:python3 setup.py install
4,安装django,解压下载的django,在该目录下执行:python3 setup.py install
参考:http://blog.csdn.net/oopsangle/article/details/28142607