Pl/python With Anaconda
I've got Anaconda installed on a Ubuntu and would like to use some of it's modules in PL/Python. However, every time I call scipy, it errors with ImportError: No module named scipy
Solution 1:
Based on the Postgres installation/configuration docs, there is an environment variable PYTHON
which can be set to the full path of the executable for Python that you want. Otherwise, the default --with-python
behavior will look for the system Python, most likely at /usr/bin/python
or similar standard location for other operating systems.
This question and answer seems to confirm that to alter it, you need to rebuild Postgres from source.
Post a Comment for "Pl/python With Anaconda"