Create PostgreSQL database


I’d like to install consul for production environment. I got this error in “Create PostgreSQL database” stage.

msg: Failed to import the required Python library (psycopg2) on 98F9ACC’s Python /usr/bin/python3. Please read the module documentation and install it in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter

I installed psycopg2 and also check the interpreter path. It seems they are Ok. Any idea for solving is appreciated.


Hi, @sfb :smile:.

Which operating system (and version) are you using?

Hi javi,
Thank you for your response.

It was a conflict of python libraries. Solved!