正在安装 python 软件包 'processing'

Installing python package 'processing'

我是 python 和 pycharm 的新手,在安装 processing 软件包时遇到错误。其他软件包已成功安装。我一直在使用 PyCharm 的软件包安装程序。但是,当我在命令行键入 pip install processing 时,我也会收到错误消息。我的 PyCharm 版本是 2022.1。 PyCharm 的命令输出是:

Collecting processing
  Using cached processing-0.52.zip (178 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'error'

  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [7 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "C:\Users\valle\AppData\Local\Temp\pip-install-46p1xcde\processing_62a3decf9c0a4eb2b7692c0f8530931b\setup.py", line 12
          raise ValueError, 'Versions of Python before 2.4 are not supported'
                          ^
      SyntaxError: invalid syntax
      [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.
WARNING: You are using pip version 22.0.3; however, version 22.0.4 is available.
You should consider upgrading via the 'C:\Program Files\QGIS 3.22.5\bin\python.exe -m pip install --upgrade pip' command.

那个包已经有 14 年历史了 – 它是 2008 年的 – 而且它只有 Python 2。

你不能在 Python 3 上安装它,这是你(或你的 QGIS)运行。

很可能您也不应该尝试安装它。