Psycopg2 fails to install on python 3 with pip issuing a fatal error

前端 未结 4 1678
猫巷女王i
猫巷女王i 2020-12-19 15:39
$ yum install python3 postgresql python-devel libpqxx-devel
Loaded plugins: langpacks, refresh-packagekit
Package python3-3.3.2-8.fc20.x86_64 already installed and l         


        
4条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-19 16:26

    You are missing python3 include files

    ./psycopg/psycopg.h:30:20: fatal error: Python.h: No such file or directory
    

    you can probably find them in the python3-devel package.

提交回复
热议问题