Can't install psycopg2 package through pip install… Is this because of Sierra?

后端 未结 13 1169
逝去的感伤
逝去的感伤 2020-11-28 01:35

I am working on a project for one of my lectures and I need to download the package psycopg2 in order to work with the postgresql database in use. Unfortunately, when I try

13条回答
  •  臣服心动
    2020-11-28 02:25

    In case you don't want to faff around with brew, here's the "MacOS-only solution":

    sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
    

    After this, pip will gladly install psycopg2 from the source. Works with "Mojave" (macOS 10.14).

提交回复
热议问题