且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

没有名为yaml的模块(再次使我的python崩溃了)

更新时间: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:

  1. 安装pyyaml,***使用pip
  2. 安装pyaml
  3. 利润
  1. Install pyyaml, preferably using pip
  2. Install pyaml
  3. Profit

第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.