Transferred from: http://www.gnss.help/2016/12/01/install-pyyaml/
Yaml Ain ' t Markup Language is an intuitive data serialization format that can be recognized by computers, which is easy to read by humans and easily parsed by the program. The syntax is more concise and straightforward than XML and JSON. YAML is ideal for storing data and program configurations, but unfortunately the Python language standard library does not have a library that integrates parsing YAML (Anaconda is already integrated). We can get the ability to manipulate YAML format files by installing the Pyyaml module.
YAML is a human-friendly, cross-language extensible, Unicode-based Data Description language. Pyyaml is a package used by Python to parse and encode YAML files, written by Kirill Simonov, compatible with Python 2 and Python 3, and the code is hosted on the Github website in the MIT protocol.
Windows Operating System
Installing Pyyaml for the Windows operating system is straightforward. The first thing to do is to ensure that your computer has the Python runtime installed, and then you can install it in any of the following ways.
Using the bootstrapper
The simplest and most straightforward way is to download the appropriate installer for your Windows system on the Pyyaml download page and double-click Install. The installer will automatically detect the installation directory of the Python environment by simply confirming that the installation directory is correct. However, the disadvantage of this method is that the installation program provided by the website may not be available for the latest Python version. For example, as of the time the article was modified, the Web site did not provide an installation bootloader that was appropriate for Python 3.6.
Using Wheel
Some developers compile the common open-source Python module in advance and make it a. whl file that can be installed directly by the Wheel program. You can download the applicable PYYAML package for installation from the University of California Irvine (UC Irvine) page.
Before installation, you must first install Wheel and execute it in the Command line window:
You can then use PIP to install the. WHL package. Installation package: https://pypi.org/project/PyYAML/
Take the 64-bit package for Python 3.6 as an example, in the directory where the file is located:
Python3 installation Pyyaml