锐单电子商城 , 一站式电子元器件采购平台!
  • 电话:400-990-0325

python pip3 安装psycopg2报错

时间:2022-09-02 23:00:01 py204带紧线螺母油压变送器

[root@edb~]$ pip3 install psycopg2
Defaulting to user installation because normal site-packages is not writeable
Collecting psycopg2
Using cached psycopg2-2.9.3.tar.gz (380 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
ERROR: Can not execute `setup.py` since setuptools is not available in the build environment.
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

最后倒数第二句说的是包的问题,不是pip说明命令的问题python安装没案:

[root@edb~]$ pip3 install --upgrade setuptools [root@edb~]$ pip3 install psycopg2

锐单商城拥有海量元器件数据手册IC替代型号,打造电子元器件IC百科大全!

相关文章