Python 官方文档:入门教程 => 点击学习
问题: AttributeError: module ‘distutils’ has no attribute ‘version’. 解决: setuptools版本问题”,版本过高导致的问题;set
问题: AttributeError: module ‘distutils’ has no attribute ‘version’.
解决: setuptools版本问题”,版本过高导致的问题;setuptools版本
第一步: pip uninstall setuptools
【使用pip,不能使用 conda uninstall setuptools ; 【不能使用conda的命令,原因是,conda在卸载的时候,会自动分析与其相关的库,然后全部删除,如果y的话,整个环境都需要重新配置。
第二步: pip
或者conda install setuptools==59.5.0
【现在最新的版本已经到了65了,之前的老版本只是部分保留,找不到的版本不行
参考链接:https://zhuanlan.zhihu.com/p/556704117
来源地址:https://blog.csdn.net/hahhahahhaja/article/details/128003170
--结束END--
本文标题: AttributeError: module ‘distutils‘ has no attribute ‘version‘
本文链接: https://www.lsjlt.com/news/428655.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-03-01
2024-03-01
2024-03-01
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0