[PySide] Qt Creator and virtualenv

Jens Lindgren jens.lindgren.vfx at gmail.com
Mon Feb 24 10:13:45 CET 2020


Just activate your virtual env in a terminal and then launch Qt Creator
from that terminal. Then Creator will have that environment.

//Jens

On Sun, Feb 23, 2020 at 1:24 PM info at mycontent.gr <info at mycontent.gr> wrote:

> Dear all,
>
> Is there a way to activate a Python virtual environment inside Qt
> Creator, i.e. ensure that all the different commands that Qt Creator is
> issuing to prepare/analyse/build the current project are run inside a
> specific virtualenv?
>
> I encounter this problem while trying to use Shiboken/PySide in order to
> create a scriptable application. I can successfully compile and run the
> "scriptableapplication" example from Pyside, across Windows, OSX and
> Linux, using CMake. But when I try to use Qt Creator and qmake, and open
> the scriptableapplication.pro project in Qt Creator, I get the following
> message:
>
>      Unable to locate shiboken2-generator. Did you forget to activate
> your virtualenv?
>
> which is indeed true, the virtualenv is not activated for the shell
> commands that Qt Creator is issuing.
>
> Thank you for your help.
>
> Kind regards,
>
> George Christodoulides
>
>
> _______________________________________________
> PySide mailing list
> PySide at qt-project.org
> https://lists.qt-project.org/listinfo/pyside
>


-- 
Jens Lindgren
------------------------------------
VFX Supervisor & Lead TD
Magoo 3D Studios <http://www.magoo3dstudios.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20200224/7d7d05da/attachment.html>


More information about the PySide mailing list