- Secret Recipes of the Python Ninja
- Cody Jackson
- 127字
- 2021-06-25 22:14:42
How it works...
In the first example (creating an archive), a temporary directory is first made, then the wheel is created using a requirements file and placed in the temporary directory. Next, the cwd variable is created and set equal to the present working directory (pwd). Finally, a combined command is issued, changing to the temporary directory, and creating an archive file in cwd of all the files in the temporary directory.
In the second example (installing from an archive), a temporary directory is created. Then, a combined command is given to change to that temporary directory and extract the files that make up the archive file. Then, using pip, the bundled files are used to install the Python program onto the computer in the temporary directory.
推薦閱讀
- Java逍遙游記
- LabVIEW 2018 虛擬儀器程序設(shè)計(jì)
- Web Scraping with Python
- 動(dòng)手玩轉(zhuǎn)Scratch3.0編程:人工智能科創(chuàng)教育指南
- 編寫整潔的Python代碼(第2版)
- Java Web及其框架技術(shù)
- OpenStack Cloud Computing Cookbook(Fourth Edition)
- Eclipse Plug-in Development:Beginner's Guide(Second Edition)
- FLL+WRO樂(lè)高機(jī)器人競(jìng)賽教程:機(jī)械、巡線與PID
- Java程序設(shè)計(jì):原理與范例
- SQL Server 2016數(shù)據(jù)庫(kù)應(yīng)用與開(kāi)發(fā)
- Mastering Akka
- Spring Security Essentials
- 編程可以很簡(jiǎn)單
- Go語(yǔ)言底層原理剖析