安装psycopg2 == 2.6.2时出错 [英] Error installing psycopg2==2.6.2

查看:243
本文介绍了安装psycopg2 == 2.6.2时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I have problems when I try installing psycopg2==2.6.2. I have installed postgresql 9.6. and I am using a virtualenv. Any help is welcome.

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/


推荐答案

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

This is a bug in psycopg2 2.6. The bug was fixed in psycopg2 2.7. Install the latest version to work with PostgreSQL 10.

这篇关于安装psycopg2 == 2.6.2时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆