#Fedora27安装wsgi,Mysql-python

使用pip安装wsgi,如果环境没有配置好的话,会出现很多错误
参考 https://pypi.python.org/pypi/mod_wsgi/4.4.8

System Requirements

With either installation method for mod_wsgi, you obviously must have Apache installed.

If running Linux, any corresponding developer variant of the specific Apache package you are using also needs to be installed. This is required in order to be able to compile mod_wsgi from source code.

For example, on Ubuntu Linux with Apache 2.2, if you were using the Apache prefork MPM you would need both:

    apache2-mpm-prefork
    apache2-prefork-dev

If instead you were using the Apache worker MPM, you would need both:

    apache2-mpm-worker
    apache2-threaded-dev

查看会发现需要apache的相关要求,修改apache的配置
这里启用的mmpm_worker_modulepm_worker_module,然后执行下面命令

 sudo dnf install httpd-devel

然后安装python2-devel,gcc和redhat-rpm-config,mysql-devel

sudo dnf install python2-devel
sudo dnf install gcc
dnf install https://dev.mysql.com/get/mysql57-community-release-fc27-10.noarch.rpm
dnf install mysql-community-server
sudo dnf install mysql-devel
sudo dnf install redhat-rpm-config

你可能感兴趣的:(#Fedora27安装wsgi,Mysql-python)