<div dir="ltr"><div><div>Hi !<br><br></div>I always have trouble when I need to use QGIS/OSGeo's python environment from outside of QGIS (e.g. setting up an IDE, running some custom scripts that need access to the same libraries than QGIS, etc...). Suggested solutions are to create some batch file, but I never really manage to make this work in a reasonable amount of time.<br></div><div><br></div><div>This contrasts very much with my experience with virtualenv (in non QGIS related python work), where switching from one python environment to another is extremely straightforward (<span style="font-family:monospace,monospace"><span style="background-color:rgb(204,204,204)">source path_to_venv/bin/activate</span></span> on linux or <span style="background-color:rgb(204,204,204)"><span style="font-family:monospace,monospace">path_to_venv\Scripts\activate.bat</span></span> on windows). With those commands, everything works : python, pip, all libraries, etc... I think most python IDEs support virtualenvs.<br></div><div><br></div><div>I'm not sure if this is possible or not, but would it be possible to have QGIS/OSGeo's python environment configured as a virtual environment ?</div><div><br></div><div>Thanks !</div><div><br></div><div>Olivier<br></div><div><br></div><div><br></div><br><div><div><br><br><br><br><div><br></div></div></div></div>