QGIS 版本 3.28.9-Firenze 中 EnMAP-Box3 (3.13.2) 安装错误

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

在工具中点击安装缺少的软件包后,我仍然收到以下错误。如何修复它?我希望这个插件能够工作。它不起作用。

An error has occurred while executing Python code: 
subprocess.CalledProcessError: Command 'C:\Program Files\QGIS 3.28.9\apps\Python39\python3.exe -m pip list' returned non-zero exit status 1. 
Traceback (most recent call last):
  File "C:\Users/rena.shereef/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\gui\enmapboxgui.py", line 807, in showPackageInstaller
    w.addPackages(requiredPackages())
  File "C:\Users/rena.shereef/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\dependencycheck.py", line 1043, in addPackages
    self.loadPIPVersionInfo(packages)
  File "C:\Users/rena.shereef/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\dependencycheck.py", line 974, in loadPIPVersionInfo
    self.startTask(task)
  File "C:\Users/rena.shereef/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\dependencycheck.py", line 989, in startTask
    qgsTask.run()
  File "C:\Users/rena.shereef/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\dependencycheck.py", line 292, in run
    process = subprocess.run(cmdList,
  File "C:\PROGRA~1\QGIS32~1.9\apps\Python39\lib\subprocess.py", line 528, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'C:\Program Files\QGIS 3.28.9\apps\Python39\python3.exe -m pip list' returned non-zero exit status 1.

Python version: 3.9.5 (tags/v3.9.5:0a7dcbd, May  3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)] 
QGIS version: 3.28.9-Firenze Firenze, 66f4d63ad4 

python plugins qgis
1个回答
0
投票

在依赖项 python 文件中,查找这些行。

  1. args.append(str(localPythonExecutable()) + ' -m pip')
  2. cmdList = str(localPythonExecutable()) + ' -m pip list'

并将其替换为以下代码:

  1. args.append('\"'+str(localPythonExecutable()) +'\"' + ' -m pip')
  2. cmdList = '\"' + str(localPythonExecutable()) + '\"' + ' -m pip list'

之后,按照本网站提供的说明进行操作: [https://enmap-box.readthedocs.io/en/latest/usr_section/usr_installation.html#install-required-python-packages][1]

这对我有用。

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