cannot install on centos 7
harrylyx opened this issue · comments
harrylyx commented
OS
CentOS Linux release 7.6.1810 (Core)
Install error
[root@VM-4-4-centos ~]# pip3 install blinker
Looking in indexes: http://mirrors.tencentyun.com/pypi/simple
Collecting blinker
Downloading http://mirrors.tencentyun.com/pypi/packages/1b/51/e2a9f3b757eb802f61dc1f2b09c8c99f6eb01cf06416c0671253536517b6/blinker-1.4.tar.gz (111 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 111.5/111.5 KB 7.1 MB/s eta 0:00:00
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.
then I try to use yum
yum install python-blinker-1.3-2.el7.noarch.rpm
But it only can be used in python2, not have python3, I don't know what can I do.
I see https://centos.pkgs.org/7/centos-extras-x86_64/python-blinker-1.3-2.el7.noarch.rpm.html, the change log in 2014 say it support python3, but actually it not. Or I made a mistake, hope get your help.
komeil Parseh commented
Hi @harrylyx You do not have the setuptools library. Install it with the following command and try again.
pip install -U setuptools wheel pip