no module 'fcntl'
或
module 'fcntl' has no attribute 'LOCK_UN'
原因:windows 不支持该module!!!!!!
以上是Linux下的环境。
根据网上的内容如下 fcntl.py
#fcnt1.py
LOCK_UN=8
F_GETFD=1
FD_CLOEXEC=1
F_SETFD=2
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
放在以下目录
C:\Users\user_name\AppData\Local\Programs\Python\Python36\Lib
如果说缺失什么内容,只能从Linux中copy过来了