Description: -- Steps to Reproduce: 1. Open console window 2. Create a working folder for a new project, change to that folder: mkdir proj && cd proj 3. Add (prepend) "C:\Program Files\LibreOffice\program" to the PATH: set PATH=C:\Program Files\LibreOffice\program;%PATH% 4. Verify the python.exe to be executed is the one from LibreOffice: where python 5. Run command: python -m venv venv Actual Results: Error occurs: C:\Program Files\LibreOffice\program\python-core-3.10.18\bin\python.exe: No module named venv Expected Results: The virtual environment named "venv" is created in the folder created on step 2 Reproducible: Always User Profile Reset: Yes Additional Info: Creating a virtual environment for any project is the standard approach in Python development. This helps a developer to ensure the development environment is the same as the runtime environment, and also makes packaging with ooscript easier. Lacking support for venv complicates development tasks, especially on Windows.
Fix in https://gerrit.libreoffice.org/c/core/+/191377
Xisco Fauli committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/dd8c42bf4b6eb5f692bb929547f69a9aedcf6c0c tdf#168511: python3: bundle venv It will be available in 26.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Xisco Fauli committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/dcd517331c8db63fee75b1519608e9ca94a491bb related tdf#168511: bundle venv on mac too + Add test It will be available in 26.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Xisco Fauli committed a patch related to this issue. It has been pushed to "libreoffice-25-8": https://git.libreoffice.org/core/commit/ecda1df6a14e99d5713309b786ff9137dda4767e tdf#168511: python3: bundle venv It will be available in 25.8.3. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Xisco Fauli committed a patch related to this issue. It has been pushed to "libreoffice-25-8": https://git.libreoffice.org/core/commit/fbb1d7bcba219685d789c2f4cdf348f8f7f8d696 related tdf#168511: bundle venv on mac too + Add test It will be available in 25.8.3. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.