0
我在Centos 7機器上安裝了1.9版本,但需要獲取版本1.9.2,因爲我遇到了兼容性問題,比如ansible和docker。Yum Update ansible version
然而,在ansible包做百勝更新沒有影響:
yum update -y ansible
No packages marked for update
如何升級包?
編輯:
的建議通過@Eldad AK我已經升級使用PIP封裝:
sudo pip install --upgrade ansible==1.9.2
,並在升級似乎是成功的:
成功安裝MarkupSafe -0.23 ansible-1.9.2 ecdsa-0.13 jinja2-2.8 paramiko-1.16.0 setuptools-20.7.0
然而,當我運行ansible可執行文件,並檢查版本,它仍然是在1.9:
ansible --version
ansible 1.9 (devel affb66416f) last updated 2015/11/04 09:09:40 (GMT +100)
歡呼聲,請參閱編輯。 – Nick
獲取以下錯誤 命令「/ usr/bin/python -u -c」導入setuptools,tokenize; __ file __ ='/ tmp/pip-build-EKrsJU/cryptography/setup.py'; f = getattr(tokenize,'open ',open)(__ file __); code = f.read()。replace('\ r \ n','\ n'); f.close(); exec(compile(code,__file__,'exec')) 「install --record /tmp/pip-ZYCjVT-record/install-record.txt --single-version-external-managed -compile」失敗,錯誤代碼爲1/tmp/pip-build-EKrsJU/cryptography / –