Postgresql - 找不到任何下载

时间:2015-01-21 12:54:48

标签: python postgresql

为什么在apt-get installpip上生成此异常:

 root@tameen:/home/tameen/Downloads/postgis-2.0.1# pip install postgresql-2.0.1
    Collecting postgresql-2.0.1
      Could not find any downloads that satisfy the requirement postgresql-2.0.1
      No distributions at all found for postgresql-2.0.1

sudo apt-get install postgresql

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 postgresql : Depends: postgresql-9.4 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

1 个答案:

答案 0 :(得分:2)

PostgreSQL是一个数据库系统,而不是Python库。 pip仅用于安装Python库。您需要通过系统的软件包管理器安装它。

例如,如果您使用的是Debian或Ubuntu,则需要执行sudo apt-get install postgresql