更新时间:2023-10-31 22:08:16
在 Python软件包索引.
pip install pyyaml
允许您import yaml
. 此程序包使Python能够解析YAML文件.pip install pyaml
允许您import pyaml
. 此程序包允许漂亮地打印来自Python的YAML文件.它需要安装pyyaml
.pip install pyyaml
lets you import yaml
. This package enables Python to parse YAML files.pip install pyaml
lets you import pyaml
. This package allows pretty-printing of YAML files from Python, among other things. It requires pyyaml
to be installed.因此,您的前进方向是:
So the way forward for you is:
pyyaml
,***使用pip pyaml
pyyaml
, preferably using pippyaml
第0步将是运行虚拟环境中的所有内容防止自制软件再次与您的Python混淆.此选项还允许您运行多个版本的Python,而不仅仅是运行Homebrew所需的版本.
Step 0 would be to run everything from a virtual environment to prevent homebrew from messing with your Python ever again. This option also lets you run multiple versions of Python, not just the one required by homebrew.