Django:ERROR:python setup.py egg_info检查日志以获得完整的命令输出

Django:ERROR:python setup.py egg_info检查日志以获得完整的命令输出,django,ubuntu,deployment,Django,Ubuntu,Deployment,我作为开发人员是新手,在Django开发了第一个项目 我尝试将我的项目部署在一个测试服务器(Ubuntu 18.04.1 LTS(GNU/Linux 4.15.0-88-generic x86_64))中,该服务器由我团队中的一名系统管理员准备 每次我尝试安装Dependencies(pip install-r requirements.txt)时,它都会失败,错误如下: ERROR: Command errored out with exit status 1: comman

我作为开发人员是新手,在Django开发了第一个项目

我尝试将我的项目部署在一个测试服务器(Ubuntu 18.04.1 LTS(GNU/Linux 4.15.0-88-generic x86_64))中,该服务器由我团队中的一名系统管理员准备

每次我尝试安装Dependencies(pip install-r requirements.txt)时,它都会失败,错误如下:

    ERROR: Command errored out with exit status 1:
     command: /home/test/envs/envTbm/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-1uqfxt7j/psycopg2/setup.py'"'"'; __file__='"'"'/tmp/pip-install-1uqfxt7j/psycopg2/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-1uqfxt7j/psycopg2/pip-egg-info
         cwd: /tmp/pip-install-1uqfxt7j/psycopg2/
    Complete output (7 lines):
    running egg_info
    creating /tmp/pip-install-1uqfxt7j/psycopg2/pip-egg-info/psycopg2.egg-info
    writing /tmp/pip-install-1uqfxt7j/psycopg2/pip-egg-info/psycopg2.egg-info/PKG-INFO
    writing dependency_links to /tmp/pip-install-1uqfxt7j/psycopg2/pip-egg-info/psycopg2.egg-info/dependency_links.txt
    writing top-level names to /tmp/pip-install-1uqfxt7j/psycopg2/pip-egg-info/psycopg2.egg-info/top_level.txt
    writing manifest file '/tmp/pip-install-1uqfxt7j/psycopg2/pip-egg-info/psycopg2.egg-info/SOURCES.txt'
    Error: b'You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application.\n'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.


我不明白可能是什么问题…

对不起,您是否真的看到了错误?错误:b‘您需要安装postgresql-server-dev-X.Y以构建服务器端扩展,或安装libpq-dev以构建客户端应用程序。’我错过了这一行。。。但我不这么认为