小编1pa*_*1pa的帖子

在pypy上安装pip

我想加快我的程序,所以我想设置pypy + psycopg2cffi.该程序打开一个xml,解析它然后在数据库中插入一些数据.我正在使用python3,postgresql和psycopg2,但这种方法非常慢.所以我想尝试用pypy + psycopg2cffi运行我的程序.我有python 3和pypy,我想安装psycopg2cffi所以我运行这个命令:

pip install psycopg2cffi psycopg2cffi-compat 
Run Code Online (Sandbox Code Playgroud)

但psycopg2cffi只安装在python上,因为当我尝试在pypy上导入psycopg2cffi这是我得到的错误:

ImportError: No module named psycopg2cffi
Run Code Online (Sandbox Code Playgroud)

所以我想我需要先安装pip,但我可以弄清楚如何做到这一点.

我怎么能在pypy上安装它?谢谢.

python pypy pip psycopg2

19
推荐指数
2
解决办法
2万
查看次数

由于另一个服务器进程崩溃而终止连接-Postgres

每次我运行相同的查询时,我都会收到此错误:

DETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory. HINT: In a moment you should be able to reconnect to the database and repeat your command. server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. connection to server was lost

我正在使用 phpPgAdmin 5.1。

postgresql

6
推荐指数
1
解决办法
7316
查看次数

标签 统计

pip ×1

postgresql ×1

psycopg2 ×1

pypy ×1

python ×1