Home >Backend Development >Python Tutorial >How to install whl file in python

How to install whl file in python

(*-*)浩
(*-*)浩Original
2019-06-25 13:46:4857872browse

The whl format is essentially a compressed package, which contains py files and compiled pyd files. This allows you to choose a suitable python environment for installation without having a compilation environment.

How to install whl file in python

Steps: (Recommended learning: Python video tutorial)

1.Open cmd in administrator mode

2.First install wheel through the pip command

If it prompts that 'pip' is not an internal or external command, nor is it available Running program or batch file

①Add the scripts directory in the python installation directory (for example, D:\Python27\Scripts) to the system environment variable path. Pay attention to the semicolon before it. Execute the command again

pip install wheel

②Enter the D:\Python27\Scripts directory under cmd and execute the command

pip install wheel

3.Install the whl file

① If you add the D:\Python27\Scripts directory to the path, you can directly open a cmd window with the administrator in the directory where the whl file is located, and directly execute the following statement.

pip install python_dateutil-2.5.3-py2.py3-none-any.whl

② Otherwise, you need to open cmd with the administrator in the D:\Python27\Scripts directory and run the pip command. The file name should be written in the full path)

pip install C:\Users\xxx\Downloads\python_dateutil-2.5.3-py2.py3-none-any.whl

More Python related technologies Article, please visit the Python Tutorial column to learn!

The above is the detailed content of How to install whl file in python. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn