最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Windows7: pip install bpython ,'ImportError: No module named fcntl'错误解决

运维笔记admin14浏览0评论
问题 1

pip install bpython 在Mac安装没有什么问题, 一旦到了Windows就出现报错:

    from fcntl import ioctl
ImportError: No module named fcntl
解决:

新建一个: fcntl.py文件, 将其存放Python的安装目录: C:\Python27\Lib 下.

该文件里面代码为:

def fcntl(fd, op, arg=0):
    return 0

def ioctl

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论