运行终端命令时出现问题:“pip install anonympy”

问题描述 投票:0回答:1

我使用的是配备 M1 Pro 芯片的 MacBook Pro,运行 macOS Venture 13.0.1,并安装了 Python 3.9.6。当尝试运行以下命令时:

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 版本的虚拟环境上尝试过此操作,两次都出现相同的构建轮错误。我也尝试运行以下命令但无济于事。

pip(3) install --upgrade setuptools

包裹有问题,还是我遗漏了什么?

python package google-colaboratory
1个回答
0
投票

看来是包中的错误,与最新的 PyPi 版本不兼容。

可以直接用pip+git安装:

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

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

© www.soinside.com 2019 - 2024. All rights reserved.