kubespray安装过程中,pip install报错处理

首先执行pip install --upgrade pip

之后,进入kubespray执行pip install -r requirements.txt 

出错提示如下:

ipaserver 4.5.4 requires dbus-python, which is not installed.
ipaserver 4.5.4 requires dogtag-pki, which is not installed.
ipaserver 4.5.4 has requirement dnspython>=1.15, but you'll have dnspython 1.12.0 which is incompatible.
requests 2.21.0 has requirement idna<2.9,>=2.5, but you'll have idna 2.4 which is incompatible.
Installing collected packages: requests, hvac
  Found existing installation: requests 2.6.0
Cannot uninstall 'requests'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

于是需要一个个解决:

dbus-python

进入https://dbus.freedesktop.org/releases/dbus-python/下载最新版本,解压后执行python setup.py install即可

dnspython 

进入http://www.dnspython.org/kits/1.16.0/下载最新版本,解压后执行python setup.py install即可

dogtag-pki

pip install dogtag-pki

idna

pip install --upgrade idna

requests

pip install -I requests==2.9

 

以上执行完毕,重新执行pip install -r requirements.txt 即可

 

你可能感兴趣的:(k8s)