Record the third library (py, whl) and pythonwhl for installing python on the Windows platform

Source: Internet
Author: User

Record the third library (py, whl) and pythonwhl for installing python on the Windows platform

When downloading the third library file of python, some library files have the release version of exe, but some third library does not find the Executable File Installation Package for window, that is, the exe file, only the source code file is the py file and the whl file.

Next we will record how to install the python third-party libraries for these two files on the Windows platform

1. Install the py file.

Generally, the py file is the source code of the plug-in. You only need to use the python environment to run the setup. py file. The following uses the plug-in library xlrd (for reading excel files) as an example.

1, first download the gz source code package, decompress to D: \ xlrd-0.8.0. The setup. py file is locatedD: \ xlrd-0.8.0 \ xlrdDirectory

2. Open cmd and run the following commandD: \ xlrd-0.8.0 \ xlrd, Go to the setup. py directory.

Then run the command

Then wait patiently.

Ii. Install the whl File

The pip command is used to install the whl file. However, when installing pythonPip.exeAndEasy_install.exeInstallScriptsFolder. For example:

Next, you only need to run the following command in cmd to install the whl file.

Press enter to wait for the installation to succeed. If not, enter the whl file directory first, just like installing py.Install python-m pip requests-2.9.1-py3-none-any.whl

Related Article

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.