This article is a mirror article of machine translation, please click here to jump to the original article.

View: 1612|Reply: 0

[Source] Python embed packages install packages using pip

[Copy link]
Posted on 2025-2-11 09:43:36 | | | |
Requirements: The server needs to install a python environment, execute python scripts to process some data, scripts rely on some third-party packages, how to use pip to install dependent packages in python embeddable?

Among the installation methods supported by python, there is one is "embedded" installation, or embedded installation, which is convenient for integrating python into other software, such as desktop software, but this installation method does not support pip, which is officially claimed to be not supported, but it also indicates that it is not impossible if you have to install pip.

Python Windows version download:The hyperlink login is visible.
Python-3.13.2 embed package 64-bit download:The hyperlink login is visible.

Download and unzip firstpython-3.13.2-embed-amd64.zipFile, omitted.

Download the get-pip.py file in the extracted directory with the following command:


Then perform the install pip with the following command:




And thenScriptsThe folder will have pip.exe apps.

Then findpython<version>._pthfile, unimport site annotation.

Go to the Scripts folder and execute the pip command to install the package, and the content will be downloadedLib\site-packagesFolder!

Reference:The hyperlink login is visible.




Previous:Xshell PLUS Business Software Purchase Tutorial
Next:Linux uses pyenv to install the Python environment
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com