I've seen few articles around the internet but nothing straightforward/clear regarding this issue. I am planning to create a plugin that will require installing several Python libraries but I do NOT want to install such libraries in the OS Python which seems to be the case for QGIS in MacOS.
Is there a way/trick to get QGIS to create a virtual environment from a requirements.txt, activate the environment and set pythonpath
for that environment during the plugin installation process?
I can potentially do such thing manually, but I am looking for an automated option. I've also seen this article, but it's a very hacky solution and could see lots of potential issues popping up. The plugin I plan to create will be used across the company and most users won't know Python or Python troubleshooting. The idea is that they only have to click 'install' to get the plugin working on QGIS.