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

前端 未结 14 1595
囚心锁ツ
囚心锁ツ 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

    Is your error message complete? the most encountered reason for failing to install psycopg2 on mac from pip is pg_config is not in path. by the way, using macports or fink to install psycopg2 is more recommended way, so you don't have to worry about pg_config, libpq-dev and python-dev.

    plus, are using Python 3.5? then upgrage your wheel to > 0.25.0 using pip.

提交回复
热议问题