首页 > 编程语言 >[记录]安装 Python 中SPAM库失败

[记录]安装 Python 中SPAM库失败

时间:2024-11-06 13:20:21浏览次数:1  
标签:info File SPAM Python egg py setuptools line 安装

报错信息:× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [41 lines of output]
running egg_info
creating /private/var/folders/l9/f9rjm65s07bdf55y5xyk9f2c0000gn/T/pip-pip-egg-info-o3ic4gdp/progressbar.egg-info
writing /private/var/folders/l9/f9rjm65s07bdf55y5xyk9f2c0000gn/T/pip-pip-egg-info-o3ic4gdp/progressbar.egg-info/PKG-INFO
writing dependency_links to /private/var/folders/l9/f9rjm65s07bdf55y5xyk9f2c0000gn/T/pip-pip-egg-info-o3ic4gdp/progressbar.egg-info/dependency_links.txt
writing top-level names to /private/var/folders/l9/f9rjm65s07bdf55y5xyk9f2c0000gn/T/pip-pip-egg-info-o3ic4gdp/progressbar.egg-info/top_level.txt
writing manifest file '/private/var/folders/l9/f9rjm65s07bdf55y5xyk9f2c0000gn/T/pip-pip-egg-info-o3ic4gdp/progressbar.egg-info/SOURCES.txt'
reading manifest file '/private/var/folders/l9/f9rjm65s07bdf55y5xyk9f2c0000gn/T/pip-pip-egg-info-o3ic4gdp/progressbar.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE.txt'
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/private/var/folders/l9/f9rjm65s07bdf55y5xyk9f2c0000gn/T/pip-install-k6x5gkip/progressbar_fd7cafa1bb454e40a17d3bafdba1dcb8/setup.py", line 19, in
setup(
File "/opt/homebrew/Caskroom/miniconda/base/envs/ML/lib/python3.10/site-packages/setuptools/init.py", line 117, in setup
return distutils.core.setup(**attrs)
File "/opt/homebrew/Caskroom/miniconda/base/envs/ML/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 183, in setup
return run_commands(dist)
File "/opt/homebrew/Caskroom/miniconda/base/envs/ML/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 199, in run_commands
dist.run_commands()
File "/opt/homebrew/Caskroom/miniconda/base/envs/ML/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 954, in run_commands
self.run_command(cmd)
File "/opt/homebrew/Caskroom/miniconda/base/envs/ML/lib/python3.10/site-packages/setuptools/dist.py", line 999, in run_command
super().run_command(command)
File "/opt/homebrew/Caskroom/miniconda/base/envs/ML/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
cmd_obj.run()
File "/opt/homebrew/Caskroom/miniconda/base/envs/ML/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 312, in run
self.find_sources()
File "/opt/homebrew/Caskroom/miniconda/base/envs/ML/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 320, in find_sources
mm.run()
File "/opt/homebrew/Caskroom/miniconda/base/envs/ML/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 546, in run
self.prune_file_list()
File "/opt/homebrew/Caskroom/miniconda/base/envs/ML/lib/python3.10/site-packages/setuptools/command/sdist.py", line 162, in prune_file_list
super().prune_file_list()
File "/opt/homebrew/Caskroom/miniconda/base/envs/ML/lib/python3.10/site-packages/setuptools/_distutils/command/sdist.py", line 380, in prune_file_list
base_dir = self.distribution.get_fullname()
File "/opt/homebrew/Caskroom/miniconda/base/envs/ML/lib/python3.10/site-packages/setuptools/_core_metadata.py", line 267, in get_fullname
return _distribution_fullname(self.get_name(), self.get_version())
File "/opt/homebrew/Caskroom/miniconda/base/envs/ML/lib/python3.10/site-packages/setuptools/_core_metadata.py", line 285, in _distribution_fullname
canonicalize_version(version, strip_trailing_zero=False),
TypeError: canonicalize_version() got an unexpected keyword argument 'strip_trailing_zero'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

Python 版本:3.10.0
安装网站:https://pypi.org/project/spam/0.7.0.1/

这个错误 TypeError: canonicalize_version() got an unexpected keyword argument 'strip_trailing_zero' 主要是由于 setuptools 版本的问题,特别是与版本解析函数 canonicalize_version() 的兼容性问题。这个问题通常会出现在较新的 setuptools 版本和旧的 Python 环境中。

解决方法:pip install setuptools==64.0.0

标签:info,File,SPAM,Python,egg,py,setuptools,line,安装
From: https://www.cnblogs.com/yehui2001/p/18529771

相关文章

  • 如何通过Python SDK更新Collection中已存在的Doc
    本文介绍如何通过PythonSDK更新Collection中已存在的Doc。说明若更新Doc时指定id不存在,则本次更新Doc操作无效如只更新部分属性fields,其他未更新属性fields默认被置为NonePythonSDK1.0.11版本后,更新Doc时vector变为非必填项前提条件已创建Cluster:创建Cluster。......
  • IBM SPSS Amos 28下载与安装教程
    1、安装包  Amos28:链接:https://pan.quark.cn/s/0f9dcffd2b38提取码:Z18Q2、安装教程1)       双击安装,弹窗安装对话框  2)       点击下一步,选择Iaccept,点击Next  3)       选择安装路径,建议安装C盘之外,选择完,点击Next  4)  ......
  • 基于大数据 Python 校园食堂订餐数据分析系统(源码+LW+部署讲解+数据库+ppt)
    !!!!!!!!!选题不知道怎么选不清楚自己适合做哪块内容都可以免费来问我避免后期給自己答辩找麻烦增加难度(部分学校只有一次答辩机会没弄好就延迟毕业了)会持续一直更新下去有问必答一键收藏关注不迷路源码获取:https://pan.baidu.com/s/1aRpOv3f2sdtVYOogQjb8jg?pwd=jf1d提取码:......
  • 100种算法【Python版】第51篇——希尔排序
    本文目录1算法步骤2算法示例3python代码3.1代码说明3.2复杂度分析4算法优化4.1Shell原始增量序列4.2Hibbard增量序列4.3Knuth增量序列4.4Sedgewick增量序列4.5Tokuda增量序列4.6Pratt增量序列5不同的增量序列的效率对比希尔......
  • Python 常用操作代码
    参考教程地址:https://www.runoob.com/python/python-tutorial.html常用代码总结#获取路径的文件名及其后缀filename=os.path.basename(path)filename_without_ext,ext=os.path.splitext(filename)#获取父目录路径parent_folder_path=os.path.dirname(path)pa......
  • PVE 安装 飞牛FnOS
    一、下载FnOS固件,并上传至PVE镜像存储区 二、创建虚拟机1、新建虚拟机,名称填“FnOS”, 2、操作系统选择不使用任何介质3、系统机型默认,BIOS选择UEFI选项,存储位置选local 4、磁盘选SATA总线,分配64G存储空间,其余选项默认 5、CPU分配单核双线程即可......
  • Linux离线安装gcc4.8
    Linux离线安装gcc4.8https://pan.baidu.com/s/1J-wVsAoTmfn_iiOnYSrmZApwd:beeelinux离线安装gcc4.8.5(简单易懂,已成功安装)联网的情况下直接使用命令yum-yinstallgcc安装。不能联网就需要离线安装了。步骤如下:获取离线安装包:可以使用我已经下载好的包,链接:https://p......
  • Python socket传输图像文件
    客户端发送图像文件importsocketdata=numpy.frombuffer(stringData,numpy.uint8)#将获取到的字符流数据转换成1维数组#decimg=cv2.imdecode(data,cv2.COLOR_BGR2GRAY)#将数组解码成图像#cv2.imwrite("./test.jpg",decimg)#imencode()将图片格式转换(编码)成流数据,......
  • Nginx 在Linux中安装、使用、配置详解
    一、官网下载Nginx官网地址:http://nginx.org/en/download.html Linux系统中,使用wget粘贴链接进行下载wgethttps://nginx.org/download/nginx-1.26.1.tar.gz 二、上传到服务器解压1、上传到指定的服务器地址上传的地址自己决定,我上传到/usr/Nginx。2、解压......
  • Docker安装Kafka多个broker集群
    一、镜像准备略二、docker-compose.yml配置version:'3.9'services:zookeeper:image:bitnami/zookeeper:3.9container_name:zookeeperports:-"2181:2181"-"2888:2888"-"3888:3888"environment:ZOO_MY_ID:1ZOO_SERVERS:zook......