首页 > 其他分享 >pip安装psycopg2报错Could not find a version that satisfies the requirement psycopg2

pip安装psycopg2报错Could not find a version that satisfies the requirement psycopg2

时间:2023-01-31 16:44:44浏览次数:40  
标签:requirement psycopg2 2.9 2.8 报错 pip 2.7 2.4

pip安装psycopg2报错

在使用命令(pip install psycopg2)安装psycopg2时,会报错:

ERROR: Could not find a version that satisfies the requirement psycopg2 (from versions: 2.0.10, 2.0.11, 2.0.12, 2.0.13, 2.0.14, 2.2.0, 2.2.1, 2.2.2, 2.3.0, 2.3.1, 2.3.2, 2.4, 2.4.1, 2.4.2, 2.4.3, 2.4.4, 2.4.5, 2.4.6, 2.5, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.5.5, 2.6, 2.6.1, 2.6.2, 2.7, 2.7.1, 2.7.2, 2.7.3, 2.7.3.1, 2.7.3.2, 2.7.4, 2.7.5, 2.7.6, 2.7.6.1, 2.7.7, 2.8, 2.8.1, 2.8.2, 2.8.3, 2.8.4, 2.8.5, 2.8.6, 2.9, 2.9.1, 2.9.2, 2.9.3, 2.9.4, 2.9.5) ERROR: No matching distribution found for psycopg2 WARNING: You are using pip version 21.3.1; however, version 22.3.1 is available. You should consider upgrading via the '/Users/edy/Desktop/ApiCode1/venv/bin/python -m pip install --upgrade pip' command.
如图显示:

image

解决方案:

使用 pip install psycopg2-binary 命令安装psycopg2即可;

标签:requirement,psycopg2,2.9,2.8,报错,pip,2.7,2.4
From: https://www.cnblogs.com/ziheng88/p/17079720.html

相关文章