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