You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just after this article was published, we discovered [the create-qgis-venv project](https://github.com/GispoCoding/qgis-venv-creator) by GispoCoding.
99
+
100
+
It is a multi-platform command-line tool (CLI). It is recommended to install it using [pipx](https://pipx.pypa.io/stable/#on-windows), which handles most of the tricky setup and is compatible with Windows. It's now the recommended tool in the Python community for managing command-line tools (CLI), so this is a great opportunity to start using it. Once pipx is installed, configured (`ensurepath`...), and a new PowerShell session is started, the installation runs smoothly:
101
+
102
+
```powershell title="Installing qgis-venv-creator with pipx"
103
+
pipx install qgis-venv-creator
104
+
```
105
+
106
+
{: .img-center loading=lazy }
107
+
108
+
The qgis-venv-creator tool is now accessible from any PowerShell session with the following command:
109
+
110
+
```powershell title="Basic command for qgis-venv-creator"
111
+
create-qgis-venv --venv-name ".venv"
112
+
```
113
+
114
+
The tool needs to identify the QGIS installation to use for generating the development environment. By default, it searches in `C:\OSGeo4W` and `C:\PROGRAMFILES\QGIS X.y.z`. However, if you are meticulous and use QGIS in a professional environment, you probably install it in a location recommended by the operating system, such as `%PROGRAMFILES%/QGIS/X_y`. You can specify a _pattern_ to indicate where it should look:
115
+
116
+
```powershell title="qgis-venv-creator with a custom QGIS installation path"
0 commit comments