最近在看微信小程序,因为小程序需要 https 协议,因此需要在开发环境下配置证书,我用的的 nginx+django,参考了网上很多文章,有结合 flup 的,但是用 pip 安装时报错,还有其他各种方法。配置了几天了都没成功。
例如这篇,安装 flup 报错 http://jingpin.jikexueyuan.com/article/57623.html
Using cached flup-1.0.2.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\GARRY\AppData\Local\Temp\pip-build-z97rw_me\flup\setup.py", line 2, in <module>
from ez_setup import use_setuptools
File "C:\Users\GARRY\AppData\Local\Temp\pip-build-z97rw_me\flup\ez_setup.py", line 98
except pkg_resources.VersionConflict, e:
^
SyntaxError: invalid syntax
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\GARRY\AppData\Local\Temp\pip-build-z97rw_me\flup\
虚心请教,如何在 windows 下配置 nginx 和 django ?感谢!!
例如这篇,安装 flup 报错 http://jingpin.jikexueyuan.com/article/57623.html
Using cached flup-1.0.2.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\GARRY\AppData\Local\Temp\pip-build-z97rw_me\flup\setup.py", line 2, in <module>
from ez_setup import use_setuptools
File "C:\Users\GARRY\AppData\Local\Temp\pip-build-z97rw_me\flup\ez_setup.py", line 98
except pkg_resources.VersionConflict, e:
^
SyntaxError: invalid syntax
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\GARRY\AppData\Local\Temp\pip-build-z97rw_me\flup\
虚心请教,如何在 windows 下配置 nginx 和 django ?感谢!!