0
do $$

import requests

$$ language plpython3u;

Error :

SQL Error [38000]: ERROR: ModuleNotFoundError: No module named 'requests' Where: Traceback (most recent call last): PL/Python anonymous code block, line 3, in import requests PL/Python anonymous code block

Do I need to restart the server to make changes work?

I want to install the requests module

J. M. Arnold
  • 6,261
  • 3
  • 20
  • 38
  • Best bet is 1) You have not `pip` installed the `requests` module 2) You installed `requests` in a different environment then the one you are running the Postgres instance of Python in. You need to provide information(**as update to question**) as to how you installed `requests` and where you installed it. – Adrian Klaver Mar 11 '23 at 17:33

0 Answers0