Skip to Content
Python语言及其应用(第2版)
book

Python语言及其应用(第2版)

by Bill Lubanovic
March 2022
Intermediate to advanced
522 pages
13h 52m
Chinese
Posts & Telecom Press
Content preview from Python语言及其应用(第2版)
348
19
pipenv
得到了
Python Packaging Authority
的推荐。
Python Packaging Authority
曾试图改善
Python
的打包工作流
,但该工作组并非核心
Python
定义小组,因此
pipenv
并未被纳入标
准库。
19.3.4
使用包管理器
Apple
macOS
包含第三方包管理器
homebrew
brew
)和
ports
。它的工作方式有点儿像
pip
,但不限于
Python
包。
不同的
Linux
发行版的包管理器各不相同,最流行的当属
apt-get
yum
dpkg
zypper
Windows
则有
W
indows Installer
,其包文件的后缀名是
.msi
。如果你安装了
Windows
版的
Python
,那么有可能就是
MSI
格式。
19.3.5
从源代码安装
有时,有些
Python
包无法通过
pip
安装,要么是因为包比较新,要么是因为作者还没准备
好。要安装这种包,通常需要做下列事情。
下载源代码。
如果是归档格式或压缩格式,就使用
zip
tar
或其他适合的工具提取文件。
在包含
setup.py
的目录中运行
python setup.py install
要留心下载和安装的文件。想在可读的
Python
程序中隐藏恶意软件有点儿难
度,但也不是不可能。
19.4
集成化开发环境
本书使用的是纯文本界面展示程序,这并不是说你必须在控制台或文本窗口中这么做。有
很多采用图形用户界面的集成化开发环境(
integrated
development environment ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Python编程入门与实战

Python编程入门与实战

Posts & Telecom Press, Fabrizio Romano
Python实用技能学习指南

Python实用技能学习指南

Posts & Telecom Press, Robert Smallshire, Austin Bingham
Python技术基础视频教程

Python技术基础视频教程

保罗·J·戴特尔
Python面向对象编程指南

Python面向对象编程指南

Posts & Telecom Press, Steven F. Lott

Publisher Resources

ISBN: 9787115586223