简体   繁体   中英

How to install yaml to site-packages

I want to know how to install YAML packages to site-packages because I need it for Blender. I already tried "C:\Program Files\Blender Foundation\Blender 3.0\3.0\python\bin\python.exe" -m pip install yaml -t"C:\Program Files\Blender Foundation\Blender 3.0\3.0\python\lib\site-packages" as administrator, but this appeared. 在此处输入图像描述

The name of the package is PyYAML so you need to install it via

pip install PyYAML

NOTE: Be aware that while the name of the package on pypi and the name of the python module are almost always the same, they do not have to be. In this case, the package is called PyYAML, however once you've installed it, it's imported via

import yaml

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM