Python3 installation Pyyaml

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.