iis服务器助手广告广告
返回顶部
首页 > 资讯 > 后端开发 > Python >AttributeError: module ‘distutils‘ has no attribute ‘version‘
  • 954
分享到

AttributeError: module ‘distutils‘ has no attribute ‘version‘

python开发语言 2023-10-11 18:10:09 954人浏览 泡泡鱼

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文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作