Failed building wheel for psycopg2 on MacOSX

I am getting this error when installing psycopg2 - Failed building wheel for psycopg2

1 Answers

Check if you have installed psycopg2-binary. If not run below command to install that

pip install psycopg2-binary

Now wxecute below commands to install pycopg2 on MAC OS. Note that we have enabled virtualenv for installing pip packages

pip uninstall psycopg2
pip list --outdated
pip install --upgrade wheel
pip install --upgrade setuptools
pip install psycopg2
Ask question now
Never leave your website again in search of code snippets by installing our chrome extension.