安装了juju的所有依赖项
pip install pyparsing==1.5.7
pip install pyOpenSSL PyYAML txaws pydot oauth txzookeeper zc-zookeeper-static
pip install juju
所有安装都很好,但是当我开始时juju
,失败并出现以下错误:
(jujuapp) ± juju
Traceback (most recent call last):
File "/Users/millisami/.virtualenvs/jujuapp/bin/juju", line 4, in <module>
from juju.control import main
File "/Users/millisami/.virtualenvs/jujuapp/lib/python2.7/site-packages/juju/control/__init__.py", line 7, in <module>
from .utils import ParseError
File "/Users/millisami/.virtualenvs/jujuapp/lib/python2.7/site-packages/juju/control/utils.py", line 8, in <module>
from juju.state.environment import EnvironmentStateManager
File "/Users/millisami/.virtualenvs/jujuapp/lib/python2.7/site-packages/juju/state/environment.py", line 8, in <module>
from juju.environment.config import EnvironmentsConfig
File "/Users/millisami/.virtualenvs/jujuapp/lib/python2.7/site-packages/juju/environment/config.py", line 8, in <module>
from juju.lib import serializer
File "/Users/millisami/.virtualenvs/jujuapp/lib/python2.7/site-packages/juju/lib/serializer.py", line 1, in <module>
from yaml import CSafeLoader, CSafeDumper, Mark
ImportError: cannot import name CSafeLoader
这是什么错误?我在 Mac 10.6 上,通过自制软件安装了 python 和 pip。