读书人

用Django做第一个app出现的有关问题和

发布时间: 2013-08-01 15:23:18 作者: rapoo

用Django做第一个app出现的问题和解决办法
1、install pip



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

读书人网 >互联网

热点推荐