uwsgi安装¶
说明¶
uWSGI is a (big) C application, so you need a C compiler (like gcc or clang) and the Python development headers.
pip安装¶
// via pip
pip install uwsgi
备注
使用conda环境,有时用pip安装uwsgi失败,记得这时用conda install uwsgi安装
Ubuntu¶
apt-get install build-essential python-dev
install:
// via downloading a source tarball and “making” it
wget https://projects.unbit.it/downloads/uwsgi-latest.tar.gz
tar zxvf uwsgi-latest.tar.gz
cd <dir>
make
Centos¶
前提:
yum install python-devel -y //
yum install python-setuptools -y
安装:
wget http://projects.unbit.it/downloads/uwsgi-latest.tar.gz
tar zxvf uwsgi-latest.tar.gz
cd <dir>
make // or python uwsgiconfig.py --build //
python setup.py install //
//ps
make clean // python uwsgiconfig.py --clean