ImportError: cannot import name ‘packaging‘ from ‘pkg_resources‘

2024-06-12 07:04

本文主要是介绍ImportError: cannot import name ‘packaging‘ from ‘pkg_resources‘,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

首先看一下setuptools是否为70.0.0版本:

pip list | grep setuptools

如果是则降低版本:

python -m pip install setuptools==69.5.1


参考:https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/15863

这篇关于ImportError: cannot import name ‘packaging‘ from ‘pkg_resources‘的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/1053511

相关文章

CSS Resources

https://developer.mozilla.org/en-US/docs/Web/CSS/Reference https://www.w3.org/Style/CSS/ https://docs.webplatform.org/wiki/css http://caniuse.com/ http://www.zhangxinxu.com/wordpress/category/css/

使用import和exec运行模块文件的异同

使用import和exec运行模块文件的异同 实例代码 #script1.pyimport sysprint(sys.platform)x = 'span'print(x*8) 在cmd中 >>> import script1win32spanspanspanspanspanspanspanspan >>> exec(open('script1.py').read())win

ImportError: No module named createrepo

我在用createrepo命令创建本地源时,出现如下: ImportError: No module named createrepo 原因估计就是之前升级python2.6为2.7时导致(系统为centos7),看网上很多说, 修改/usr/share/createrepo/genpkgmetadata.py 第一行的python路径,但我试了根本无效 我是重新通过yum卸载create

IDEA 中 Maven 报错 Cannot resolve xxx(全网试完,亲测有效的方法汇总)

问题: pom中已经添加相关依赖,maven刷新也没有用,依旧是疯狂报错。 可能原因: 在IDEA中的pom文件中添加了依赖,并且正确加载了相应依赖,pom文件没有报红,看起来像是把所有依赖库全部加载进来了,但是代码中使用依赖的类库使报红。 在pom中添加了某个依赖,不会直接立刻马上将其下载并且添加到项目的external libraries中。只有在某个子模块的pom文件中也添加了

springcloud config报错No spring.config.import set

目录 一、问题描述二、解决方法 一、问题描述 springcloud config client 编译报错 No spring.config.import set org.springframework.cloud.commons.ConfigDataMissingEnvironmentPostProcessor$ImportException: No spring.con

libcudart.so.9.0: cannot open shared object file: No such file or directory

使用torch 或者 torchvision的时候,报错:libcudart.so.9.0: cannot open shared object file: No such file or directory 经过gg一下,发现这个错误是 没有正确安装 英伟达的 CUDA 9 工具包。 但我一想 不对!我是服务器上根本没有GPU 根本不需要安装cuda啊! 后来torch官网发现,必须专门指

Tensorflow: Cannot interpret feed_dict key as Tensor 解决报错 flask keras

文章目录 1 报错信息2 原因3 解决办法 1 报错信息 使用fask和keras时候,在本地没任何问题。 但是上传到服务器上之后,总是报做个错误: TypeError: Cannot interpret feed_dict key as Tensor: Tensor Tensor("Placeholder:0", shape=(3, 3, 3, 64), dtype=floa

ImportError: No module named matplotlib

学习《Spark机器学习》时,在Linux下运行Python shell,同时运用PyShark下使用MLlib的线性模型和决策树模型进行实验时,在Spark的安装目录下启动PySpark shell,使用IPython同时启用pylab功能: IPYTHON=1 IPYTHON_OPTS="-pylab" ./bin/pyspark 但出问题了!!!ImportError: No mod

Webstorm vue项目@路径不能跳转到对应资源,提示Cannot find declaration to go to

Webstorm vue项目@路径不能跳转到对应资源,提示Cannot find declaration to go to 我们 ctrl加鼠标左键点击方法会失效,看了网上很多教程在说需要在此处配置一下webpack.config.js的文件路径,而且指向了node_modules\@vue\cli-service\webpack.config.js 我试了好多次,不行,不论对错,这里

无法import fastText

https://github.com/facebookresearch/fastText/issues/474#issuecomment-445430211