场景:mac 下导入的 ‘select’ 包 import select,然后在 主函数 中创建的 epoll 对象 epl = select.epoll(),运行报错如下

Traceback (most recent call last):
File "tests.py", line , in <module>
emsc.run()
File "tests.py", line , in run
epoll = select.epoll()
AttributeError: module 'select' has no attribute 'epoll'

python官方文档介绍

select.epoll([sizehint=-])
(Only supported on Linux 2.5. and newer.) Returns an edge polling object,
which can be used as Edge or Level Triggered interface for I/O events;
see section Edge and Level Trigger Polling (epoll) Objects below for the methods supported by epolling objects.

答案:仅仅支持Linux2.5.44或更高版本。

参考:

https://blog.csdn.net/weixin_42250835/article/details/89573354

最新文章

  1. [Unity3D]引擎学习之注意事项(持续更新中)
  2. Linux IPC POSIX 信号量
  3. 【C++】const
  4. SSDB安装配置
  5. systemctl
  6. cocos2d-html5的jsb模式下如何在编译时自动将js编译为jsc
  7. Debian 8 安装 Nvidia 显卡驱动
  8. layoutSubviews -- setNeedsLayout -- layoutIfNeeded -- 区别
  9. 活动图 Activity Diagram
  10. 1156. Two Rounds(dfs+背包)
  11. 编译安装php Cannot find MySQL header files under /usr/include/mysql.
  12. 游戏中VIP会员模块的简单实现
  13. VC++下使用SQLite数据库
  14. Android 之 MediaPlayer类
  15. 8.Vue基础
  16. ****微信小程序架构解析
  17. MR汇聚工具步骤
  18. 装mongondb数据库
  19. 使用idea创建springboot项目并打成war包发布到tomcat8上
  20. UI框架搭建DAY1

热门文章

  1. vs2017js 方法注释
  2. Java自学-接口与继承 重写
  3. Django---静态文件配置,post提交表单的csrf问题(日后细说),创建app子项目和分析其目录,ORM对象关系映射简介,Django操作orm(重点)
  4. VC 在桌面上绘制一些图形
  5. 剑指前端(前端入门笔记系列)——BOM
  6. Android源码分析(四)-----Android源码编译及刷机步骤
  7. RxJS——调度器(Scheduler)
  8. Linux 部署 YUM 仓库
  9. 【异常】微博生成短链异常{&quot;request&quot;:&quot;/2/short_url/shorten.json&quot;,&quot;error_code&quot;:&quot;10014&quot;,&quot;error&quot;:&quot;Insufficient app permissions!&quot;}
  10. tf学习