AttributeError: module 'threading' has no attribute 'RLock'
时间: 2023-10-04 18:12:50 浏览: 64
AttributeError: module 'threading' has no attribute 'RLock' 的意思是在 threading 模块中找不到 RLock 属性。这个错误通常发生在你的程序命名与 Python 自带的脚本名字重复了。换句话说,你的程序的文件名与 Python 自带的脚本名重复了,导致程序无法正确导入 threading 模块。解决这个问题的方法是修改你的程序文件名,确保它与 Python 自带的脚本名不冲突。也要注意命名标识符的规则,标识符由字母、数字和下划线组成,并且不能以数字开头。另外,Python 自带的关键字也不能用作标识符。你可以使用 Google 等搜索引擎来查找类似错误的解决方案和相关资料。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [AttributeError: module 'threading' has no attribute 'RLock'](https://blog.csdn.net/qq_34546589/article/details/100810278)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [Python中报 AttributeError: module ‘threading‘ has no attribute ‘RLock‘ 解决方法](https://blog.csdn.net/weixin_56349063/article/details/121328344)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]