SetuptoolsDeprecationWarning: Invalid dash-separated options

chatgpt/2023/9/27 15:54:43

Preparing metadata (setup.py) … error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [69 lines of output]
/root/anaconda3/envs/LLM/lib/python3.11/site-packages/setuptools/dist.py:755: SetuptoolsDeprecationWarning: Invalid dash-separated options
!!

          ********************************************************************************Usage of dash-separated 'index-url' will not be supported in futureversions. Please use the underscore name 'index_url' instead.By 2023-Sep-26, you need to update your project and remove deprecated callsor your builds will no longer be supported.See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.********************************************************************************!!opt = self.warn_dash_deprecation(opt, section)/root/anaconda3/envs/LLM/lib/python3.11/site-packages/setuptools/__init__.py:84: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.!!********************************************************************************Requirements should be satisfied by a PEP 517 installer.If you are using pip, you can try `pip install --use-pep517`.********************************************************************************!!dist.fetch_build_eggs(dist.setup_requires)WARNING: The repository located at mirrors.cloud.aliyuncs.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with '--trusted-host mirrors.cloud.aliyuncs.com'.ERROR: Could not find a version that satisfies the requirement setuptools_scm (from versions: none)ERROR: No matching distribution found for setuptools_scmTraceback (most recent call last):File "/root/anaconda3/envs/LLM/lib/python3.11/site-packages/setuptools/installer.py", line 96, in _fetch_build_egg_no_warnsubprocess.check_call(cmd)File "/root/anaconda3/envs/LLM/lib/python3.11/subprocess.py", line 413, in check_callraise CalledProcessError(retcode, cmd)subprocess.CalledProcessError: Command '['/root/anaconda3/envs/LLM/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmp3e69rg1o', '--quiet', '--index-url', 'http://mirrors.cloud.aliyuncs.com/pypi/simple/', 'setuptools_scm']' returned non-zero exit status 1.The above exception was the direct cause of the following exception:Traceback (most recent call last):File "<string>", line 2, in <module>File "<pip-setuptools-caller>", line 34, in <module>File "/tmp/pip-install-j6mf9__c/wavedrom_4d1f3b365de04736998f05b09f720fbe/setup.py", line 28, in <module>setup(File "/root/anaconda3/envs/LLM/lib/python3.11/site-packages/setuptools/__init__.py", line 106, in setup_install_setup_requires(attrs)File "/root/anaconda3/envs/LLM/lib/python3.11/site-packages/setuptools/__init__.py", line 79, in _install_setup_requires_fetch_build_eggs(dist)File "/root/anaconda3/envs/LLM/lib/python3.11/site-packages/setuptools/__init__.py", line 84, in _fetch_build_eggsdist.fetch_build_eggs(dist.setup_requires)File "/root/anaconda3/envs/LLM/lib/python3.11/site-packages/setuptools/dist.py", line 917, in fetch_build_eggsreturn _fetch_build_eggs(self, requires)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/root/anaconda3/envs/LLM/lib/python3.11/site-packages/setuptools/installer.py", line 38, in _fetch_build_eggsresolved_dists = pkg_resources.working_set.resolve(^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/root/anaconda3/envs/LLM/lib/python3.11/site-packages/pkg_resources/__init__.py", line 827, in resolvedist = self._resolve_dist(^^^^^^^^^^^^^^^^^^^File "/root/anaconda3/envs/LLM/lib/python3.11/site-packages/pkg_resources/__init__.py", line 863, in _resolve_distdist = best[req.key] = env.best_match(^^^^^^^^^^^^^^^File "/root/anaconda3/envs/LLM/lib/python3.11/site-packages/pkg_resources/__init__.py", line 1133, in best_matchreturn self.obtain(req, installer)^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/root/anaconda3/envs/LLM/lib/python3.11/site-packages/pkg_resources/__init__.py", line 1145, in obtainreturn installer(requirement)^^^^^^^^^^^^^^^^^^^^^^File "/root/anaconda3/envs/LLM/lib/python3.11/site-packages/setuptools/installer.py", line 98, in _fetch_build_egg_no_warnraise DistutilsError(str(e)) from edistutils.errors.DistutilsError: Command '['/root/anaconda3/envs/LLM/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmp3e69rg1o', '--quiet', '--index-url', 'http://mirrors.cloud.aliyuncs.com/pypi/simple/', 'setuptools_scm']' returned non-zero exit status 1.[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.

解决办法不难:

pip install setuptools-scm
pip install seqeval

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.exyb.cn/news/show-5314932.html

如若内容造成侵权/违法违规/事实不符,请联系郑州代理记账网进行投诉反馈,一经查实,立即删除!

相关文章

图数据库Neo4j学习四——Spring Data NEO

1配置 1.1Maven依赖 <!--neo4j --> <dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-data-neo4j</artifactId> </dependency>1.2yml配置 spring:data:neo4j:uri: bolt://localhost:76…

CVE-2023-37582 Apache RocketMQ 远程代码执行漏洞

漏洞简介 Apache RocketMQ是一款低延迟、高并发、高可用、高可靠的分布式消息中间件。CVE-2023-37582 中&#xff0c;由于对 CVE-2023-33246 修复不完善&#xff0c;导致在Apache RocketMQ NameServer 存在未授权访问的情况下&#xff0c;攻击者可构造恶意请求以RocketMQ运行的…

实景三维在城中村改造中的应用

背景介绍 近日召开的国务院常务会议审议通过了《关于在超大特大城市积极稳步推进城中村改造的指导意见》。会议指出&#xff0c;在超大特大城市积极稳步实施城中村改造是改善民生、扩大内需、推动城市高质量发展的一项重要举措。 28日在京召开在超大特大城市积极稳步推进城中…

hbase优化:客户端、服务端、hdfs

hbase优化 一.读优化 1.客户端&#xff1a; scan。cache 设置是否合理&#xff1a;大scan场景下将scan缓存从100增大到500或者1000&#xff0c;用以减少RPC次数使用批量get进行读取请求离线批量读取请求设置禁用缓存&#xff0c;scan.setBlockCache(false)以指定列族或者列进行…

Linux操作系统学习,Linux基础命令大全

目录 第一章、Linux简介和安装1.1&#xff09;Linux简介和分类1.2&#xff09;安装VMware虚拟机&#xff0c;在虚拟机中安装CentOS 7 第二章、虚拟机中Linux的IP地址配置详解2.1&#xff09;什么是IP地址&#xff0c;如何查看2.2&#xff09;虚拟机NAT模式中Linux的IP地址设置有…

vue3+ts 实现文件上传(包含上传、下载、和预览功能),番外(接口请求封装)

公共组件 上传文件包含上传、下载、和预览功能 <!-- 上传文件 --> <template><div class"demo-image__preview"><el-image-viewerhide-on-click-modalclose"() > {showViewer false;}"v-if"showViewer":url-list"…

章节5:SQL注入之WAF绕过

章节5&#xff1a;SQL注入之WAF绕过 5.1 SQL注入之WAF绕过上 WAF拦截原理&#xff1a;WAF从规则库中匹配敏感字符进行拦截。 5.2 SQL注入之WAF绕过下 &#xff08;原理简单了解&#xff09; 关键词大小写绕过 有的WAF因为规则设计的问题&#xff0c;只匹配纯大写或纯小写的…

LAD Oracle dataguard KSR

LAD *log_archive_dest 20/07/2023 10:08:37 2 Error 1089 disconnecting from LAD:2 standby host pkgprddg 20/07/2023 10:08:37 3 Error 1089 disconnecting from LAD:2 standby host
推荐文章