“Failed building wheel for psycopg2” - MacOSX using virtualenv and pip

前端 未结 14 1513
囚心锁ツ
囚心锁ツ 2020-12-08 18:20

I\'m attempting to make a website with a few others for the first time, and have run into a weird error when trying to use Django/Python/VirtualEnv. I\'ve found solutions to

14条回答
  •  無奈伤痛
    2020-12-08 19:14

    For Mac OS X users:

    1. First check your postgresql path by running this command in terminal:

    pg_config
    

    If this fails lookup how to add pg_config to your path.

    2. Next install Xcode Tools by running this command in terminal:

    xcode-select --install
    

    If you have both those sorted out now try to install psycopg2 again

提交回复
热议问题