myems/docs/windows下运行myems-api服务

19 lines
662 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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