ModuleNotFoundError:Nomodulenamed'distutils' 这是由于只有当python的版本介于3.4-3.11版本间时,python才提供了distutils模块,这间接的说明了,我们当前正在安装模块依赖的python版本为3.4-3.11,所以解决该问题的的根本的方法是将当前python的版本切换至3.4-3.11版本间(而不是在其它的版本下安装所谓的distutils模块),以mac...
return _bootstrap._gcd_import(name[level:], package, level) ModuleNotFoundError: No module named 'setuptools._distutils' 使用软件版本: Python 3.8.2 pip 21.3.1 解决方法 网上试了一大圈,Stackoverflow问题翻烂了,不管用,最后在github找到一个老哥的解决方案: 设定环境变量是一个有用的解决方案 $ expor...
No module named 'distutils.core' 这时用以下方法进行解决 sudo apt-get install python-distutils 当然,如果是ubuntu18这种默认只有python3的,那么运行 sudo apt-get install python3-distutils
报错ModuleNotFoundError:No module named setuptools._distutils 如图 原因:setuptools版本太高,需要重新安装低于5.0.0的版本 -解决:如安装低版本的setuptools:pip install setuptools==49.1.2 记录学习的点点滴滴
我在Python3中安装包时遇到了问题。importerror "No Module namedSetuptools" 我不知道该怎么做,因为我以前没有安装setuptools。尽管如此,我仍然可以在没有setuptools的情况下使用setup.py insta 浏览203提问于2013-01-21得票数 371 回答已采纳 2回答 Windows: ModuleNotFoundError:没有名为'distutils‘的模块 ...
我的安装包是pyinstaller3.4,python版本是3.8,后来我在pycharm里面下载了pyinstaller,步骤如下 ...
** ### 编辑 2022-02-04 从 Python 3.10 开始 [,Distutils 已弃用,并将在 Python 3.12 中删除](https://docs.python.org/3/whatsnew/3.10.html#distutils)\- 使用 [setuptools](https://packaging.python.org/en/latest/guides/distributing-packages-using-setuptools/) : > 整个distutils 包已弃用,将在...
orig.build_py.finalize_options(self)File"D:\anaconda3\envs\py37\lib\distutils\command\build_py.py",line45,infinalize_options('force','force'))File"D:\anaconda3\envs\py37\lib\distutils\cmd.py",line286,inset_undefined_options src_cmd_obj=self.distribution.get_command_obj(src_cmd)File"D...
0.什么是setuptoolssetuptools是python distutils增强版的集合,它可以帮助我们更简单的创建和分布python包,尤其是拥有依赖关系的。用户在使用setuptools创建的包时,并不需要已安装setuptools,只要一个启动模块即可。功能亮点:1)利用EasyInstall自动查找、下载、安装、升级依赖包2)创建Python Eggs ,包含包目录内的数据文件3)...
ModuleNotFoundError: No module named 'setuptools._distutils'pypa/pip#8823 Closed Copy link Author dHannaschcommentedAug 31, 2020• edited That's true, and a useful workaround, but I think that's just because with no pyproject.toml, setuptools 50 doesn't get installed in the first place....