There was an error while loading. Please reload this page.
1 parent b597835 commit 96031d7Copy full SHA for 96031d7
1 file changed
doc/src/sgml/plpython.sgml
@@ -1469,5 +1469,15 @@ plpy.execute("UPDATE tbl SET %s = %s WHERE key = %s" % (
1469
the <command>python</command> man page are only effective in a
1470
command-line interpreter and not an embedded Python interpreter.)
1471
</para>
1472
+
1473
+ <tip>
1474
+ <para>
1475
+ When installing <application>PL/Python</application>,
1476
+ package managers usually pick up the system-wide interpreter.
1477
+ In Python it is generally recommended to use virtual environments.
1478
+ In that case you can set <envar>PYTHONPATH</envar> to something like
1479
+ <literal>PYTHONPATH=/path/to/venv/lib/python3.XY</literal>.
1480
+ </para>
1481
+ </tip>
1482
</sect1>
1483
</chapter>
0 commit comments