这个问题只在win系统出现,解决办法 1.windows的python的Lib目录中没有fcntl.py模块文件,在文件下创建该文件 2.该文件下写如下代码即可 def fcntl(fd, op, arg=0): return 0 def ioctl(fd, op, arg=