19 lines
662 B
Plaintext
19 lines
662 B
Plaintext
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 |