Home  >  Article  >  Backend Development  >  Graphical introduction to how to install Python under WinPE

Graphical introduction to how to install Python under WinPE

高洛峰
高洛峰Original
2017-03-04 15:38:191822browse

This article mainly introduces the specific implementation steps of installing Python under WinPE in a combination of pictures and texts. Interested friends can refer to it

This article introduces the specific steps of installing Python under WinPE. , for your reference, the specific content is as follows

1. Download the Python Windows installation package, the latest version is 3.3.0

Download address:http ://www.python.org/getit/

2. Install Python in Windows system, If it is WinPE 64bit, Python 64bit should be installed.

* Note that "Install just for me" should be selected, and click Next for the rest

Graphical introduction to how to install Python under WinPE

3. Unzip the WinPE startup image boot.wim

dism.exe /mount-wim /WimFile:.\boot.wim /index:1 /MountDir:.\mount

Graphical introduction to how to install Python under WinPE

4. Copy the installed Python files to the WinPE startup image

For example: the default installation folder of Python3.3.0 is C:\Python33, this folder Copy to the root directory of the WinPE startup image

Graphical introduction to how to install Python under WinPE

5. Add the following command to Windows\system32\startnet.cmd:

Associated Python file extension: assoc .py=PythonFile

Specify the command to call the Python file: ftype PythonFile=X:\Python33\Python.exe "%1" %*

* Note that %1 must be enclosed in "", otherwise the path with spaces cannot be executed

Graphical introduction to how to install Python under WinPE

## 6. Encapsulating the WinPE startup image

dism.exe /unmount-wim /mountdir:.\mount /commit

Graphical introduction to how to install Python under WinPE

## 7. Start WinPE and verify whether the Python script can Execution

The above is the entire content of this article, I hope it will be helpful to everyone's study.

For more pictures and texts introducing how to install Python under WinPE, please pay attention to the PHP Chinese website for related articles!

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