From 6892981249ce65197272fadcb6bfaa8bcf65a04f Mon Sep 17 00:00:00 2001 From: gjl <1056963263@qq.com> Date: Mon, 21 Mar 2022 07:45:40 +0000 Subject: [PATCH] =?UTF-8?q?add=20docs/windows=E4=B8=8B=E8=BF=90=E8=A1=8Cmy?= =?UTF-8?q?ems-api=E6=9C=8D=E5=8A=A1.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/windows下运行myems-api服务 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 docs/windows下运行myems-api服务 diff --git a/docs/windows下运行myems-api服务 b/docs/windows下运行myems-api服务 new file mode 100644 index 00000000..741923b6 --- /dev/null +++ b/docs/windows下运行myems-api服务 @@ -0,0 +1,19 @@ +1、Windows下运行myems-api服务需要安装依赖waitress,命令是: pip install waitress; +2、运行服务命令:waitress-serve --port=8000 app:api +3、可能遇到的问题(在这卡了很久):No module named 'fcntl'和No module named 'pwd',实际解决方法很简单:在python目录的lib目录下新建fcntl.py和pwd.py,fcntl里内容如下,pwd里空着就行; + + +def fcntl(fd, op, arg=0): + return 0 + +def ioctl(fd, op, arg=0, mutable_flag=True): + if mutable_flag: + return 0 + else: + return "" + +def flock(fd, op): + return + +def lockf(fd, operation, length=0, start=0, whence=0): + return \ No newline at end of file