AttributeError: module 'setuptools._distutils' has no attribute 'version'
时间: 2023-08-27 13:15:12 浏览: 179
引用和指出了出现AttributeError: module 'distutils' has no attribute 'version'的问题。这个错误通常是由于setuptools包的版本问题引起的。在setuptools v59.6.0及更高版本中,distutils模块的version属性已经被弃用,因此在使用较新版本的setuptools时会报错。引用中提到了一个解决方法,即降低setuptools的版本。可以通过执行以下命令解决问题:
pip uninstall setuptools
pip install setuptools==59.5.0
通过将setuptools的版本降低到59.5.0,可以避免出现AttributeError错误。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [调用Tensorboard时报错AttributeError: module ‘setuptools._distutils‘ has no attribute ‘version](https://blog.csdn.net/fightforglory/article/details/123782837)[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^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* [AttributeError: module ‘distutils‘ has no attribute ‘version](https://blog.csdn.net/weixin_37989267/article/details/127154804)[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^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文