我正在使用一台配备M1 Pro芯片的MacBook Pro,运行macOS Venture 13.0.1,并安装了Python 3.9.6.try 运行以下命令时:

pip install anonympy
pip3 install anonympy

我得到以下输出:

Collecting anonympy
  Using cached anonympy-0.3.7.tar.gz (5.8 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error
  
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      error in anonympy setup command: 'python_requires' must be a string containing valid version specifiers; Invalid specifier: '>=3.6*'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

我在Colab和本地运行相同Python版本的虚拟环境上try 了这一点,两次都得到了相同的构建轮错误.我还try 运行以下命令,但没有成功.

pip(3) install --upgrade setuptools

包裹有问题吗,或者我错过了什么?

推荐答案

似乎这是包中的一个错误,与上一个PyPi版本不兼容.

您可以直接使用pip+git安装:

pip install git+https://github.com/ArtLabss/open-data-anonymizer.git

相关Github问题:https://github.com/ArtLabss/open-data-anonymizer/issues/26

Python相关问答推荐

用gekko解决的ADE方程系统突然不再工作,错误消息异常:@错误:模型文件未找到.& &

从webhook中的短代码(而不是电话号码)接收Twilio消息

海运图:调整行和列标签

删除所有列值,但判断是否存在任何二元组

Excel图表-使用openpyxl更改水平轴与Y轴相交的位置(Python)

发生异常:TclMessage命令名称无效.!listbox"

计算组中唯一值的数量

运输问题分支定界法&

我对我应该做什么以及我如何做感到困惑'

给定高度约束的旋转角解析求解

如何并行化/加速并行numba代码?

如何保持服务器发送的事件连接活动?

实现神经网络代码时的TypeError

无论输入分辨率如何,稳定扩散管道始终输出512 * 512张图像

如何创建引用列表并分配值的Systemrame列

为什么调用函数的值和次数不同,递归在代码中是如何工作的?

如何在Python请求中组合多个适配器?

为什么我只用exec()函数运行了一次文件,而Python却运行了两次?

将数字数组添加到Pandas DataFrame的单元格依赖于初始化

try 在单个WITH_COLUMNS_SEQ操作中链接表达式时,使用Polars数据帧时出现ComputeError