标签:project mysql open mod usr eve configure pip event
1. centos6.4
准备:
yum -y install gcc*
yum -y install openssl-devel
yum install libtermcap-devel ncurses-devel libevent-devel readline-devel
tar -zxvf Python2.7.11.tgz /usr/local/python27
./configure --prefix=/usr/local/python27
vim ./Module/Setup
1.
# 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
2.
readline readline.c -lreadline -ltermcap
make $$ make install
修改系统默认的python2..6.6 --2.7.11
cd /usr/bin/
rm python
ln -s /usr/local/python27/bin/python /usr/bin/python
vim /usr/bin/yum ##/usr/bin/python --> /usr/bin/python2.6
ipython ##交互式的开发工具
virtualenv ##沙盒工具 python setup.py install ln -s ...
virtualenv project1
source ./project1/bin/acti..
pip setuptools ##
pip install pymysql
pip install requests
标签:project mysql open mod usr eve configure pip event
原文地址:https://www.cnblogs.com/ryan-ning/p/10333848.html