AttributeError: module ‘select’ has no attribute 'epoll’
2024-10-19 17:26:58
场景: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
最新文章
- [Unity3D]引擎学习之注意事项(持续更新中)
- Linux IPC POSIX 信号量
- 【C++】const
- SSDB安装配置
- systemctl
- cocos2d-html5的jsb模式下如何在编译时自动将js编译为jsc
- Debian 8 安装 Nvidia 显卡驱动
- layoutSubviews -- setNeedsLayout -- layoutIfNeeded -- 区别
- 活动图 Activity Diagram
- 1156. Two Rounds(dfs+背包)
- 编译安装php Cannot find MySQL header files under /usr/include/mysql.
- 游戏中VIP会员模块的简单实现
- VC++下使用SQLite数据库
- Android 之 MediaPlayer类
- 8.Vue基础
- ****微信小程序架构解析
- MR汇聚工具步骤
- 装mongondb数据库
- 使用idea创建springboot项目并打成war包发布到tomcat8上
- UI框架搭建DAY1
热门文章
- vs2017js 方法注释
- Java自学-接口与继承 重写
- Django---静态文件配置,post提交表单的csrf问题(日后细说),创建app子项目和分析其目录,ORM对象关系映射简介,Django操作orm(重点)
- VC 在桌面上绘制一些图形
- 剑指前端(前端入门笔记系列)——BOM
- Android源码分析(四)-----Android源码编译及刷机步骤
- RxJS——调度器(Scheduler)
- Linux 部署 YUM 仓库
- 【异常】微博生成短链异常{";request";:";/2/short_url/shorten.json";,";error_code";:";10014";,";error";:";Insufficient app permissions!";}
- tf学习