<legend id='d3I9Z'><style id='d3I9Z'><dir id='d3I9Z'><q id='d3I9Z'></q></dir></style></legend>

        <bdo id='d3I9Z'></bdo><ul id='d3I9Z'></ul>

      <tfoot id='d3I9Z'></tfoot>
    1. <i id='d3I9Z'><tr id='d3I9Z'><dt id='d3I9Z'><q id='d3I9Z'><span id='d3I9Z'><b id='d3I9Z'><form id='d3I9Z'><ins id='d3I9Z'></ins><ul id='d3I9Z'></ul><sub id='d3I9Z'></sub></form><legend id='d3I9Z'></legend><bdo id='d3I9Z'><pre id='d3I9Z'><center id='d3I9Z'></center></pre></bdo></b><th id='d3I9Z'></th></span></q></dt></tr></i><div id='d3I9Z'><tfoot id='d3I9Z'></tfoot><dl id='d3I9Z'><fieldset id='d3I9Z'></fieldset></dl></div>

        <small id='d3I9Z'></small><noframes id='d3I9Z'>

        错误:安装 psycopg2 时命令“gcc"以退出状态失败

        时间:2023-09-13

        <tfoot id='4ahzm'></tfoot>

        <legend id='4ahzm'><style id='4ahzm'><dir id='4ahzm'><q id='4ahzm'></q></dir></style></legend>
        <i id='4ahzm'><tr id='4ahzm'><dt id='4ahzm'><q id='4ahzm'><span id='4ahzm'><b id='4ahzm'><form id='4ahzm'><ins id='4ahzm'></ins><ul id='4ahzm'></ul><sub id='4ahzm'></sub></form><legend id='4ahzm'></legend><bdo id='4ahzm'><pre id='4ahzm'><center id='4ahzm'></center></pre></bdo></b><th id='4ahzm'></th></span></q></dt></tr></i><div id='4ahzm'><tfoot id='4ahzm'></tfoot><dl id='4ahzm'><fieldset id='4ahzm'></fieldset></dl></div>

          <bdo id='4ahzm'></bdo><ul id='4ahzm'></ul>
            <tbody id='4ahzm'></tbody>
          1. <small id='4ahzm'></small><noframes id='4ahzm'>

                • 本文介绍了错误:安装 psycopg2 时命令“gcc"以退出状态失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我需要为 openerp 安装过程安装 psycopg2,但我总是遇到这个错误.我已经使用过 pipeasy_install 并且我的 gcc 是最新版本.我真的需要你的帮助来解决我的问题.

                  I need to install psycopg2 for openerp installation process, but I always faced that error. I've already used pip and easy_install and my gcc is the latest version. I really need your help to solve my problem.

                  这是我使用 easy_install 的完整错误:

                  This is my complete error with easy_install:

                  [root@server01 ~]# easy_install psycopg2    
                  Searching for psycopg2    
                  Reading http://pypi.python.org/simple/psycopg2/    
                  Reading http://initd.org/psycopg/    
                  Reading http://initd.org/projects/psycopg2    
                  Best match: psycopg2 2.4.5    
                  Downloading http://initd.org/psycopg/tarballs/PSYCOPG-2-4/psycopg2-2.4.5.tar.gz    
                  Processing psycopg2-2.4.5.tar.gz    
                  Running psycopg2-2.4.5/setup.py -q bdist_egg --dist-dir /tmp/easy_install-anWVvJ/psycopg2-2.4.5/egg-dist-tmp-cZbdtn
                  
                  no previously-included directories found matching 'doc/src/_build' In file included from psycopg/psycopgmodule.c:27:
                  ./psycopg/psycopg.h:31:22: error: libpq-fe.h: No such file or directory In file included from psycopg/psycopgmodule.c:29:
                  
                  ...
                  
                  error: Setup script exited with error: command 'gcc' failed with exit status 1
                  

                  推荐答案

                  你需要安装 PostgreSQL 的开发包,例如在 Ubuntu 下是 sudo apt-get install libpq-dev... 对于 CentOS,它是 yum install postgresql-devel

                  You'll need to install the development package for PostgreSQL, which for instance under Ubuntu is a sudo apt-get install libpq-dev... and for CentOS it's yum install postgresql-devel

                  这篇关于错误:安装 psycopg2 时命令“gcc"以退出状态失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:bash:mkvirtualenv:找不到命令 下一篇:如何在 Centos 6.5 上安装 python27-devel

                  相关文章

                  最新文章

                      <legend id='4Mcv2'><style id='4Mcv2'><dir id='4Mcv2'><q id='4Mcv2'></q></dir></style></legend>

                    1. <i id='4Mcv2'><tr id='4Mcv2'><dt id='4Mcv2'><q id='4Mcv2'><span id='4Mcv2'><b id='4Mcv2'><form id='4Mcv2'><ins id='4Mcv2'></ins><ul id='4Mcv2'></ul><sub id='4Mcv2'></sub></form><legend id='4Mcv2'></legend><bdo id='4Mcv2'><pre id='4Mcv2'><center id='4Mcv2'></center></pre></bdo></b><th id='4Mcv2'></th></span></q></dt></tr></i><div id='4Mcv2'><tfoot id='4Mcv2'></tfoot><dl id='4Mcv2'><fieldset id='4Mcv2'></fieldset></dl></div>
                      <tfoot id='4Mcv2'></tfoot>

                      • <bdo id='4Mcv2'></bdo><ul id='4Mcv2'></ul>

                      <small id='4Mcv2'></small><noframes id='4Mcv2'>