win版fcntl 解决

时间:2019-01-14 11:02:30   收藏:0   阅读:3935

pip install fcntl

Collecting fcntl
Could not find a version that satisfies the requirement fcntl (from versions: )
No matching distribution found for fcntl

解决 自己新建一个: fcntl.py文件, 将其存放Python的安装目录: C:\Python27\Lib 下. 或者项目根文件夹下即可

# fcntl.py
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
--------------------- 

Stack Overflow
参考

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!