python setup.py install
2、install django-app as user lib :
python setup.py sdist(https://docs.djangoproject.com/en/1.5/intro/reusable-apps/)
then you want to uninstall the app through pip tool, you may see
"importerror cannot import name httpshandler" error
the way to fix
1、install openssl if there are no /usr/local/ssl
download the openssl ,
./configure
make
make install
2、 reinstall python2.7.2 from source package ,but you need uncomment below lines before install
Modules/Setup.dist
# Socket module helper for SSL support; you must comment out the other # socket line above, and possibly edit the SSL variable: SSL=/usr/local/ssl _ssl _ssl.c \ -DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \ -L$(SSL)/lib -lssl -lcrypto
cd python-source-dir
./confiugre
make
make install
ln -s /usr/local/bin/python2.7 /usr/bin/python