Record the third library (PY,WHL) that installs Python on the window platform

Source: Internet
Author: User

When downloading the Python third library file, some library files have EXE's release version, but some third libraries do not find executable files for window installation package is EXE file, and only the source code file is the py file, and the WHL file.

Here's a look at the Python third-party library of how to install both files on the window platform

First, install the py file.

The general PY file is already packaged the plug-in source code, only need to use the Python environment to run the setup.py file on the line. The following is an example of XLRD (read Excel file) This plugin library

1, first download GZ source package, extract to D:\xlrd-0.8.0. The setup.py file is now located in the D:\xlrd-0.8.0\xlrd directory

2. Open cmd, run the following command CD D:\xlrd-0.8.0\xlrd, enter the setup.py directory

Then run the command

It's good to wait patiently for the next.

Ii. installation of WHL files

The installation of the WHL file requires the use of the PIP command, but we have installed the pip.exe and easy_install.exe in the relative scripts folder while loading Python. Such as:

  

Next, just run the following command in CMD to install the WHL file.

  

Press ENTER to wait for the installation to succeed, if not, and install the PY, first enter the directory of the WHL file, in the execution python-m pip requests-2.9.1-py3-none-any.whl Install

Record the third library (PY,WHL) that installs Python on the window platform

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.