pip install weditor安装出错解决方法

2024-03-21 16:08

本文主要是介绍pip install weditor安装出错解决方法,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

报错信息:

Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting weditor
Using cachedhttps://pypi.tuna.tsinghua.edu.cn/packages/04/9b/ec6c2b8ab08fecd21d98121e2b91244632d1836669bb9c917ff01406bd1a/wedito
r-0.6.5.tar.gz (2.2 MB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [34 lines of output]
WARNING: Ignoring invalid distribution -pencv-python (c:\users\administrator.desktop-3488grn\appdata\roaming\python\python38
site-packages)
WARNING: Ignoring invalid distribution -ip (e:\ziyuanbao\lib\site-packages)
E:\ziyuanbao\lib\site-packages\setuptools\dist.py:738: UserWarning: Usage of dash-separated 'author-email' will not be suppor
ted in future versions. Please use the underscore name 'author_email' instead
warnings.warn(
E:\ziyuanbao\lib\site-packages\setuptools\dist.py:738: UserWarning: Usage of dash-separated 'home-page' will not be supported
in future versions. Please use the underscore name 'home_page' instead
warnings.warn(
E:\ziyuanbao\lib\site-packages\setuptools\dist.py:738: UserWarning: Usage of dash-separated 'description-file' will not be su
pported in future versions. Please use the underscore name 'description_file' instead
warnings.warn(
E:\ziyuanbao\lib\site-packages\pkg_resources_init.py:122: PkgResourcesDeprecationWarning: 4.0.0-unsupported is an invalid
version and will not be supported in a future release
warnings.warn(
E:\ziyuanbao\lib\site-packages\setuptools\installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated.
Requirements should be satisfied by a PEP 517 installer.
warnings.warn(
Error parsing
Traceback (most recent call last):
File "c:\users\administrator.desktop-3488grn\appdata\local\temp\pip-install-c_1owwyj\weditor_c837051f5af04a9893def95fbce5da
7e.eggs\pbr-5.8.1-py3.8.egg\pbr\core.py", line 111, in pbr
attrs = util.cfg_to_args(path, dist.script_args)
File "c:\users\administrator.desktop-3488grn\appdata\local\temp\pip-install-c_1owwyj\weditor_c837051f5af04a9893def95fbce5da
7e.eggs\pbr-5.8.1-py3.8.egg\pbr\util.py", line 272, in cfg_to_args
pbr.hooks.setup_hook(config)
File "c:\users\administrator.desktop-3488grn\appdata\local\temp\pip-install-c_1owwyj\weditor_c837051f5af04a9893def95fbce5da
7e.eggs\pbr-5.8.1-py3.8.egg\pbr\hooks_init.py", line 25, in setup_hook
metadata_config.run()
File "c:\users\administrator.desktop-3488grn\appdata\local\temp\pip-install-c_1owwyj\weditor_c837051f5af04a9893def95fbce5da
7e.eggs\pbr-5.8.1-py3.8.egg\pbr\hooks\base.py", line 27, in run
self.hook()
File "c:\users\administrator.desktop-3488grn\appdata\local\temp\pip-install-c_1owwyj\weditor_c837051f5af04a9893def95fbce5da
7e.eggs\pbr-5.8.1-py3.8.egg\pbr\hooks\metadata.py", line 25, in hook
self.config['version'] = packaging.get_version(
File "c:\users\administrator.desktop-3488grn\appdata\local\temp\pip-install-c_1owwyj\weditor_c837051f5af04a9893def95fbce5da
7e.eggs\pbr-5.8.1-py3.8.egg\pbr\packaging.py", line 860, in get_version
version =get_version_from_pkg_metadata(package_name)
File "c:\users\administrator.desktop-3488grn\appdata\local\temp\pip-install-c_1owwyj\weditor_c837051f5af04a9893def95fbce5da
7e.eggs\pbr-5.8.1-py3.8.egg\pbr\packaging.py", line 828, in get_version_from_pkg_metadata
pkg_metadata = email.message_from_file(pkg_metadata_file)
File "E:\ziyuanbao\lib\email_init.py", line 54, in message_from_file
return Parser(*args, **kws).parse(fp)
File "E:\ziyuanbao\lib\email\parser.py", line 53, in parse
data = fp.read(8192)
UnicodeDecodeError: 'gbk' codec can't decode byte 0xad in position 825: illegal multibyte sequence
error in setup command: Error parsing C:\Users\Administrator.DESKTOP-3488GRN\AppData\Local\Temp\pip-install-c_1owwyj\weditor
c837051f5af04a9893def95fbce5da7e\setup.cfg: UnicodeDecodeError: 'gbk' codec can't decode byte 0xad in position 825: illegal multiby
te sequence
[end of output]note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed× Encountered error while generating package metadata.
╰─> See above for output.note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

解决方法:

git clone https://github.com/openatx/weditor
pip3 install -e weditor

这篇关于pip install weditor安装出错解决方法的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



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

相关文章

大数据spark3.5安装部署之local模式详解

《大数据spark3.5安装部署之local模式详解》本文介绍了如何在本地模式下安装和配置Spark,并展示了如何使用SparkShell进行基本的数据处理操作,同时,还介绍了如何通过Spark-su... 目录下载上传解压配置jdk解压配置环境变量启动查看交互操作命令行提交应用spark,一个数据处理框架

Linux虚拟机不显示IP地址的解决方法(亲测有效)

《Linux虚拟机不显示IP地址的解决方法(亲测有效)》本文主要介绍了通过VMware新装的Linux系统没有IP地址的解决方法,主要步骤包括:关闭虚拟机、打开VM虚拟网络编辑器、还原VMnet8或修... 目录前言步骤0.问题情况1.关闭虚拟机2.China编程打开VM虚拟网络编辑器3.1 方法一:点击还原VM

Flask解决指定端口无法生效问题

《Flask解决指定端口无法生效问题》文章讲述了在使用PyCharm开发Flask应用时,启动地址与手动指定的IP端口不一致的问题,通过修改PyCharm的运行配置,将Flask项目的运行模式从Fla... 目录android问题重现解决方案问题重现手动指定的IP端口是app.run(host='0.0.

Android WebView无法加载H5页面的常见问题和解决方法

《AndroidWebView无法加载H5页面的常见问题和解决方法》AndroidWebView是一种视图组件,使得Android应用能够显示网页内容,它基于Chromium,具备现代浏览器的许多功... 目录1. WebView 简介2. 常见问题3. 网络权限设置4. 启用 JavaScript5. D

Java捕获ThreadPoolExecutor内部线程异常的四种方法

《Java捕获ThreadPoolExecutor内部线程异常的四种方法》这篇文章主要为大家详细介绍了Java捕获ThreadPoolExecutor内部线程异常的四种方法,文中的示例代码讲解详细,感... 目录方案 1方案 2方案 3方案 4结论方案 1使用 execute + try-catch 记录

mysql关联查询速度慢的问题及解决

《mysql关联查询速度慢的问题及解决》:本文主要介绍mysql关联查询速度慢的问题及解决方案,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录mysql关联查询速度慢1. 记录原因1.1 在一次线上的服务中1.2 最终发现2. 解决方案3. 具体操作总结mysql

Python FastAPI入门安装使用

《PythonFastAPI入门安装使用》FastAPI是一个现代、快速的PythonWeb框架,用于构建API,它基于Python3.6+的类型提示特性,使得代码更加简洁且易于绶护,这篇文章主要介... 目录第一节:FastAPI入门一、FastAPI框架介绍什么是ASGI服务(WSGI)二、FastAP

Python中Windows和macOS文件路径格式不一致的解决方法

《Python中Windows和macOS文件路径格式不一致的解决方法》在Python中,Windows和macOS的文件路径字符串格式不一致主要体现在路径分隔符上,这种差异可能导致跨平台代码在处理文... 目录方法 1:使用 os.path 模块方法 2:使用 pathlib 模块(推荐)方法 3:统一使

一文教你解决Python不支持中文路径的问题

《一文教你解决Python不支持中文路径的问题》Python是一种广泛使用的高级编程语言,然而在处理包含中文字符的文件路径时,Python有时会表现出一些不友好的行为,下面小编就来为大家介绍一下具体的... 目录问题背景解决方案1. 设置正确的文件编码2. 使用pathlib模块3. 转换路径为Unicod

Spring MVC跨域问题及解决

《SpringMVC跨域问题及解决》:本文主要介绍SpringMVC跨域问题及解决方案,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录跨域问题不同的域同源策略解决方法1.CORS2.jsONP3.局部解决方案4.全局解决方法总结跨域问题不同的域协议、域名、端口