解決策
ひとまずPyCharm等のIDEの環境やvenvの効いていない、素のターミナル立ち上げて開いて↓を叩く。
python -m pip install PyYaml
または
python pip install PyYaml
エラー
Traceback (most recent call last):
File "/Users/sot528/.pyenv/versions/3.6.1/bin/aws", line 27, in <module>
sys.exit(main())
File "/Users/sot528/.pyenv/versions/3.6.1/bin/aws", line 23, in main
return awscli.clidriver.main()
File "/Users/sot528/.pyenv/versions/3.6.1/lib/python3.6/site-packages/awscli/clidriver.py", line 58, in main
driver = create_clidriver()
File "/Users/sot528/.pyenv/versions/3.6.1/lib/python3.6/site-packages/awscli/clidriver.py", line 69, in create_clidriver
event_hooks=emitter)
File "/Users/sot528/.pyenv/versions/3.6.1/lib/python3.6/site-packages/awscli/plugin.py", line 44, in load_plugins
modules = _import_plugins(plugin_mapping)
File "/Users/sot528/.pyenv/versions/3.6.1/lib/python3.6/site-packages/awscli/plugin.py", line 61, in _import_plugins
module = __import__(path, fromlist=[module])
File "/Users/sot528/.pyenv/versions/3.6.1/lib/python3.6/site-packages/awscli/handlers.py", line 27, in <module>
from awscli.customizations.cloudformation import initialize as cloudformation_init
File "/Users/sot528/.pyenv/versions/3.6.1/lib/python3.6/site-packages/awscli/customizations/cloudformation/__init__.py", line 13, in <module>
from awscli.customizations.cloudformation.package import PackageCommand
File "/Users/sot528/.pyenv/versions/3.6.1/lib/python3.6/site-packages/awscli/customizations/cloudformation/package.py", line 22, in <module>
from awscli.customizations.cloudformation.artifact_exporter import Template
File "/Users/sot528/.pyenv/versions/3.6.1/lib/python3.6/site-packages/awscli/customizations/cloudformation/artifact_exporter.py", line 26, in <module>
from awscli.customizations.cloudformation.yamlhelper import yaml_dump, \
File "/Users/sot528/.pyenv/versions/3.6.1/lib/python3.6/site-packages/awscli/customizations/cloudformation/yamlhelper.py", line 15, in <module>
from yaml.resolver import ScalarNode, SequenceNode
ModuleNotFoundError: No module named 'yaml.resolver'
環境
- Python 3.6.1
- macOS Mojave 10.14.4 (18E226)