首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏python3

    python错误:distutils.e

    ", File "/usr/lib64/python2.7/distutils/core.py", line 112, in setup _setup_distribution = dist = klass site-packages/setuptools/command/easy_install.py", line 617, in easy_install raise DistutilsError(msg) distutils.errors.DistutilsError

    1.5K20发布于 2020-01-08
  • 来自专栏计算机视觉理论及其实现

    Python的Distutils模块

    一、Distutils简介1.1、概念和术语对于模块开发者以及需要安装模块的使用者来说,Distutils的使用都很简单,作为一个开发者,除了编写源码之外,还需要:编写setup脚本(一般是setup.py 二、编写setup脚本setup脚本是使用Distutils构建、发布和安装模块的核心。setup脚本的作用是向Distutils描述发布模块的信息。 下面是一个更高级一些的例子:Distutils模块本身的setup脚本:setup(name='Distutils', version='1.0', description= /', packages=['distutils', 'distutils.command'], ) 上面这个脚本有更多的元数据,列出的是两个包(packages),而不是列出每个模块 要实现此目的,那么包名和目录名必须能够相互对应,比如包名是distutils,则意味着在发布的根目录(setup脚本所在目录)下存在distutils子目录;再比如在setup脚本中packages =

    6.4K40编辑于 2022-09-03
  • 来自专栏计算机视觉理论及其实现

    python的distutils、setuptools模块

    学习中遇到distutils和setuptools两种打包的工具。 distutils distutils是Python 标准库的一部分,这个库的目的是为开发者提供一种方便的打包方式, 同时为使用者提供方便的安装方式。 当我们开发了自己的模块之后,使用distutils的setup.py打包。 完成功能python hello.py def hello_fun(): print("i say hello to you") 二、建立setup.py文件 setup.py from distutils.core setuptools setuptools是distutils的增强版。

    1.4K20编辑于 2023-10-07
  • 来自专栏python全栈教程专栏

    ModuleNotFoundError: No module named ‘distutils.util‘

    使用命令: sudo apt-get install python3-distutils

    89620发布于 2021-10-18
  • 来自专栏Django Scrapy

    pip安装报错 cannot uninstall a distutils installed project

    sudo pip install --ignore-installed xxx 在安装jupyter notebook的时候,遇到了这个问题,于是上网搜索,搜到了靠谱答案github解决方案

    7.7K20发布于 2019-03-08
  • 来自专栏Error

    Python3.13: ModuleNotFoundError: No module named distutils

    原因python3.12开始彻底移除了distutils, 而系统当前环境的pip版本仍然依赖distutils.解决方法手动安装新的官方标准环境,以适应python3.13的更改。 bootstrap.pypa.io/get-pip.py -o get-pip.pypython3.13 get-pip.py此命令将自动安装与新版Python兼容的最新版pip与setuptools,无需额外的distutils

    2.7K10编辑于 2025-03-12
  • pymc运行报错AttributeError: module ‘numpy.distutils.__config__‘ has no attribute ‘blas_opt_info‘

    python3.9/site-packages/theano/configdefaults.py", line 1284, in default_blas_ldflags blas_info = np.distutils __config__.blas_opt_info AttributeError: module 'numpy.distutils. has no attribute 'blas_opt_info' 解决方法: 在numpy配置文件里面没有blas_opt_info,将报错地方替换:          blas_info = np.distutils __config__.blas_opt_info         =>         blas_info = np.distutils.__config__.blas_ilp64_opt_info

    17710编辑于 2025-07-20
  • 来自专栏python全栈教程专栏

    It is a distutils installed project and thu2

    It is a distutils installed project and thu2 解决方案: pip install -U --ignore-installed wrapt enum34 simplejson

    2.5K20发布于 2021-10-18
  • 来自专栏HHTjim'S 部落格

    2025CTF-MISC-GAC

    __subclasses__().pop() 回到 _distutils_hack.shim .__enter__. __globals__.popitem() 剥尾 返回: _=('DISTUTILS_FINDER', <_distutils_hack.DistutilsMetaFinder object at __globals__.popitem() 剥尾 _=('ensure_local_distutils', <function ensure_local_distutils at 0x7ff0a6696710 __globals__.popitem() 剥尾 _=('clear_distutils', <function clear_distutils at 0x7ff0a66965f0>) . __globals__.popitem() 剥尾 _=('warn_distutils_present', <function warn_distutils_present at 0x7ff0a6696320

    14710编辑于 2025-08-27
  • 来自专栏小徐学爬虫

    Python numpyf2py链接库

    old_setup(**new_attr) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils dist.run_commands() File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils self.run_command(cmd) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils cmd_obj.run() File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/distutils old_build.run(self) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils

    26810编辑于 2025-02-12
  • 来自专栏nginx

    解决Python虚拟环境依赖问题:从错误分析到版本降级

    ModuleNotFoundError: No module named 'distutils' 经过分析,发现问题的根源是 distutils 模块缺失,而更深层次的原因是Python版本与依赖包之间的兼容性问题 问题分析 2.1 什么是 distutilsdistutils 是Python的一个标准库模块,用于构建和安装Python包。 因此,如果你的项目依赖某些需要 distutils 的包,可能会遇到类似的问题。 解决方案 3.1 安装 distutils 模块 首先,我尝试通过安装 distutils 模块来解决问题。 3.2 使用 setuptools 替代 distutils 既然 distutils 已经被弃用,我尝试使用 setuptools 作为替代。

    63810编辑于 2025-11-15
  • 来自专栏韩曙亮的移动开发专栏

    【错误记录】Mac 中 Python 报错 ( ERROR: Could not build wheels for numpy which use PEP 517 | 问题未解决 | 问题记录 )

    Use setuptools or check PEP 632 for potential alternatives from distutils.version import LooseVersion define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)] non-existing path in 'numpy/distutils build/src.macosx-10.9-universal2-3.10/numpy creating build/src.macosx-10.9-universal2-3.10/numpy/distutils /vmczqsnn1pq23nd3m8l20tgm0000gn/T/pip-install-rwma8x2f/numpy_7b31547f15ca407ca1bc3a1f7739e891/numpy/distutils (**attrs) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/distutils/core.py

    1.8K10编辑于 2023-03-29
  • 来自专栏python3

    python之程序打包

    18.1 Distutils基础 Distutils安装脚本 from distutils.core import setup setup(name='Hello',version='1.0',description 确保在同一目下下存在名为hello.py的模块文件 $python setup.py build Distutils创建了叫做build的子目录,其中包含名为lib的子目录,并且把hello.py的一个副本放置在 build目录是Distutils组装包的工作区。在安装的时候不需要build命令。 假设已经在当前目录中放置了源文件palindrome2.c,下面的setup.py脚本可以用于编译: from distutils.core import setup,Extension setup(name 18.4 使用py2exe创建可执行程序 py2exe作为Distutils的扩展可用来创建可执行的windows程序。 Py2exe包可以创建拥有GUI的可执行文件。

    1K30发布于 2020-01-06
  • 来自专栏Python爬虫与数据挖掘

    安装笔记本应用商店的pycharm,再安排pandas等模块,说是没有打包工具?

    二、实现过程 这里【黑科技·鼓包】给了一个指导: 您遇到的错误是因为缺少 distutils.util 模块导致的。 distutils.util 模块是 Python 标准库的一部分,通常应该是自带的。 如果显示的是 Python 3.x 版本,那么通常 distutils.util 应该是自带的。 如果 Python 已正确安装,但仍然出现该错误,可以尝试使用以下命令安装 distutils 模块:pip install distutils 运行上述命令后,等待安装完成。 例如,如果您使用的是 conda,可以运行以下命令:conda install distutils 等待安装完成后,再次尝试导入 distutils.util 模块。

    49310编辑于 2024-05-28
  • 来自专栏python3

    python插件 docker buil

    :   File "setup.py", line 310, in <module>     cmdclass=COMMAND_CLASS,   File "/usr/lib64/python2.7/distutils /core.py", line 152, in setup     dist.run_commands()   File "/usr/lib64/python2.7/distutils/dist.py" , line 953, in run_commands     self.run_command(cmd)   File "/usr/lib64/python2.7/distutils/dist.py" ", line 326, in run_command     self.distribution.run_command(command)   File "/usr/lib64/python2.7/distutils bdist_egg.py", line 171, in call_command     self.run_command(cmdname)   File "/usr/lib64/python2.7/distutils

    91220发布于 2020-01-10
  • 来自专栏全栈程序员必看

    python py2exe_编写简单网页

    创建 setup 脚本文件 (setup.py) py2exe 在 Distutils 的基础上扩展了一个新的 “命令”。 如果你安装过 Python 的第三方模块,那么你一定至少见过一个 distutils 命令: C:\Tutorial>python setup.py install “install” 是 Distutils Distutils 需要做的细节就包含在 setup.py 文件的设置中(有时候还有一些关联文件)。 “py2exe” 是一个新的 Distutils 命令, 当你导入 py2exe时就会加载进来。 为了使用 py2exe ,你需要创建一个 setup.py 文件去告诉Distutils 和 py2exe 你想要做什么。 让我们一行一行的解读… 在py2exe 下工作时,我们通常需要的 Distutils 的唯一部分就是 setup 函数,所以我们导入它。

    72710编辑于 2022-10-03
  • 来自专栏全栈程序员必看

    Ubuntu20.04环境下安装pip过程遇到问题总结「建议收藏」

    解决办法: 修改Ubuntu的软件源就能解决无法定位软件包的问题 问题2:安装setuptools报错问题 解决办法:执行命令:sudo apt-get install python3-distutils : 正在读取软件包列表… 完成 正在分析软件包的依赖关系树 正在读取状态信息… 完成 将会同时安装下列软件: python3-lib2to3 下列【新】软件包将被安装: python3-distutils 准备解压 …/python3-distutils_3.8.10-0ubuntu1~20.10_all.deb … 正在解压 python3-distutils (3.8.10-0ubuntu1~20.10 ) … 正在设置 python3-lib2to3 (3.8.10-0ubuntu1~20.10) … 正在设置 python3-distutils (3.8.10-0ubuntu1~20.10) … 于是distutils 相关的就安装好了,下面就开始安装setuptools 了 问题3:安装pip时,存在setuptools没有的问题(需要先解决问题2) 解决办法:需要先下载setuptools

    2.2K20编辑于 2022-09-22
  • 来自专栏小徐学爬虫

    如何在 Canopy 中导入 scikit-learn

    install -U scikit-learn,并收到了从日志文件中获取的以下错误:running build_clib​No module named msvccompiler in numpy.distutils Directories to search for the libraries can be specified in the​ numpy/distutils/site.cfg file (section Directories to search for the libraries can be specified in the​ numpy/distutils/site.cfg file (section Directories to search for the sources can be specified in the​ numpy/distutils/site.cfg file (section Directories to search for the libraries can be specified in the​ numpy/distutils/site.cfg file (section

    37410编辑于 2025-02-05
  • 来自专栏韩曙亮的移动开发专栏

    【错误记录】Mac 中 IntelliJ IDEA 运行 Python 程序报错 ( No module named ‘numpy‘ )

    Use setuptools or check PEP 632 for potential alternatives from distutils.version import LooseVersion define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)] non-existing path in 'numpy/distutils build/src.macosx-10.9-universal2-3.10/numpy creating build/src.macosx-10.9-universal2-3.10/numpy/distutils /vmczqsnn1pq23nd3m8l20tgm0000gn/T/pip-install-9_bhqerr/numpy_280faa88bab24eab97533beae7f5be03/numpy/distutils (**attrs) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/distutils/core.py

    1.4K10编辑于 2023-03-29
  • 来自专栏python3

    【python】项目打包发布

    distutils,setuptools,pip,virtualenv 官网资料(Python Packaging User Guide):  https://packaging.python.org/ key_projects/#setuptools 简介 distutils - Python自带的基本安装工具, 适用于非常简单的应用场景使用, 不支持依赖包的安装    通过distutils来打包 setuptools - 针对 distutils 做了大量扩展, 尤其是加入了包依赖机制。 - setuptools 和 distribute 的诞生是因为 distutils 的不济, 进而导致目前分化的状况。 它将成为 Python 3.3 的标准库 packaging , 并在其它版本中以distutils2 的身份出现; 换句话说, 它和 pip 将联手结束目前混乱的状况。

    1.9K40发布于 2020-01-10
领券