I'm trying to setup a venv using the Python interpreter which ships with QGIS 3.22.6 according to this blog post here. However, when I execute the specific command, the following error occurs:
C:\Source\experiments\qgistest>C:\QGIS\bin\python-qgis-ltr.bat -m venv .venv
Error: Command '['C:\\Source\\experiments\\qgistest\\.venv\\Scripts\\python.exe', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.
Similiar questions here on SO indicate that the venv
package could not be present, or that it's an error related to ensurepip
, however as for the former, the specified .venv
folder does get created (partially) and ensurepip
executes just aswell. Sadly I don't get any further indicators what might be the issue here.