1.安装 pip
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
-
下面参考如下: https://pip.pypa.io/en/stable/installing/
-
If set, don't attempt to install setuptools
如果不安装 setuptools 和 wheel 加入下面参数
--no-setuptools
-
If set, don't attempt to install wheel
--no-wheel
Install from local copies of pip and setuptools:
python get-pip.py --no-index --find-links=/local/copies
Install to the user site [4]:
python get-pip.py --user
Install behind a proxy:
python get-pip.py --proxy="[user:passwd@]proxy.server:port"
--------------------------------------------------------------------
2.安装 python-consul
# pip install python-consul