Re: plpython3u and virtualenv

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 19.07.18 10:22, 066ce286@xxxxxxx wrote:
> Do you think there is a way to make a pg server using a specific python virtualenv ?

virtualenv relies on environment settings to make it use the Python
installation in certain directories.  You could start the PostgreSQL
server inside the virtualenv.  That's not going to change which
interpreter binary it's using, since that's in the shared library
belonging to the PostgreSQL installation.  But it might make it use the
right Python module directories.  Alternatively, you could just make the
environment variable settings manually.  With a bit of experimentation
you can probably make it do useful things, but it won't match the
virtualenv experience directly.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux