安装psycopg2 == 2.6.2时出错

rob*_*o09 11 python postgresql psycopg2

我尝试安装psycopg2 == 2.6.2时遇到问题.我已经安装了postgresql 9.6.我正在使用virtualenv.欢迎任何帮助.

Collecting psycopg2==2.6.2 (from -r requirements.txt (line 21))
  Downloading psycopg2-2.6.2.tar.gz (376kB)
    100% |????????????????????????????????| 378kB 281kB/s 
    Complete output from command python setup.py egg_info:
    running egg_info
    creating pip-egg-info/psycopg2.egg-info
    writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
    writing pip-egg-info/psycopg2.egg-info/PKG-INFO
    writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
    Error: could not determine PostgreSQL version from '10.0'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-k7nulk7r/psycopg2/
Run Code Online (Sandbox Code Playgroud)

phd*_*phd 17

这是psycopg2 2.6中的一个错误.该错误已在psycopg2 2.7中修复.安装最新版本以使用PostgreSQL 10.