問題
ansible-containerをインストールしようした際に、下記のようなエラーが発生。
[root@localhost ~]# pip install ansible-container
Collecting ansible-container
Using cached https://files.pythonhosted.org/packages/bc/2a/b1252de3931173d26a30fc965be33c9cc0044cf7b23ce4c707f55d86830c/ansible-container-0.9.2.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-la0j9y/ansible-container/setup.py", line 10, in <module>
from pip.req import parse_requirements
ImportError: No module named req
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-la0j9y/ansible-container/
workAround
-
githubのissue
回避策
「この方法で突破できたぜ!」という意見がいろいろ出ていますが、私の場合は↓のpipのダウングレードでいけました
pip install --force-reinstall pip==9.0.3
所感
- pipのバージョンとansible-containerの相性の問題だろうか?
- ansible-container自体がまだv.1.0にはなってないので、いろいろ起きそう。