已經安裝過python3.5python
一、安裝flask:apache
pip install flaskflask
二、安裝apache:windows
httpd -k install -n "Apache2.4" dom
httpd -k startserver
如:blog
啓動apache遇到錯誤:httpd: Could not reliably determine the server's fully qualified domain nameip
編輯httpd.conf文件,搜索"#ServerName",添加ServerName localhost:80部署
三、安裝mod_wsgiget
pip install mod_wsgi
如:報錯 error: Unable to find vcvarsall.bat
對於python,3.4 安裝Windows SDK for Windows 7 and .NET 4.0(或者 Visual Studio 2010) 。對其餘版本,鏈接:
https://blogs.msdn.microsoft.com/pythonengineering/2016/04/11/unable-to-find-vcvarsall-bat/