centos7使用pip安装软件时报错

今天在使用pip安装docker-compose时出现了如下报错

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-6AEQQu/pycparser/
image.png

然后按照下边的方法更新安装插件,试了下,成功。

# python -m pip install --upgrade --force pip  
# pip install setuptools==33.1.1
# pip install docker-compose

              .......

Successfully installed asn1crypto-0.24.0 bcrypt-3.1.6 cached-property-1.5.1 cffi-1.12.2 cryptography-2.6.1 docker-3.7.2 docker-compose-1.24.0 docker-pycreds-0.4.0 dockerpty-0.4.1 docopt-0.6.2 enum34-1.1.6 functools32-3.2.3.post2 idna-2.7 jsonschema-2.6.0 paramiko-2.4.2 pyasn1-0.4.5 pycparser-2.19 pynacl-1.3.0 requests-2.20.1 six-1.12.0 texttable-0.9.1 websocket-client-0.56.0

你可能感兴趣的:(centos7使用pip安装软件时报错)