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