pyhron yolov5 AttributeError: module 'distutils' has no attribute 'version'
时间: 2023-09-01 14:14:08 浏览: 178
你遇到的问题是"AttributeError: module 'distutils' has no attribute 'version'",这个问题的解决方案是更新或安装setuptools的适当版本。根据引用中提供的解决方案,你可以尝试以下步骤来解决这个问题:
1. 打开你的Python环境。
2. 使用命令`pip uninstall setuptools`来卸载当前安装的setuptools。
3. 然后使用命令`pip install setuptools==59.5.0`来安装setuptools的适当版本。
通过执行这些步骤,你应该能够解决"AttributeError: module 'distutils' has no attribute 'version'"的问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [YOLOV7:AttributeError: module ‘distutils‘ has no attribute ‘version‘ 的解决方案](https://blog.csdn.net/xty123abc/article/details/125862656)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [AttributeError: module ‘distutils‘ has no attribute ‘version](https://blog.csdn.net/hahhahahhaja/article/details/128003170)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文