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

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

by Bill Lubanovic
March 2022
Intermediate to advanced content levelIntermediate to advanced
522 pages
13h 52m
Chinese
Posts & Telecom Press
Content preview from Python语言及其应用(第2版)
430
附录B
安装
Python 3
本书中的大多数示例是用
Python 3.7
编写和测试的,这是在撰写本书时最新的稳定版本。
Python
What
s New in Python
页面介绍了每个版本中新添加的内容。获取
Python
的来源
有很多,安装新版本的方法也不止一种。本附录描述了其中的几种方法。
python.or
g
下载
Python
的标准安装包并添加辅助程序
pip
virtualenv
如果工作偏重于科学领域,那么你可能更喜欢从
Anaconda
获取捆绑了许多科学软件包
Python
,选择使用其软件包安装程序
conda
代替
pip
Windows
根本没有预装
Python
macOS
Linux
Unix
的预装版本也比较旧
。所以,你可
能还得自己动手安装
Python 3
B.1
检查
Python
版本
在终端或终端窗口中,输入
python -v
$
python -V
Python 3.7.2
取决于你的操作系统,如果尚未安装
Python
或操作系统无法找到,就会得到类似于
command not found
这种错误消息。
如果你的
Python
版本
2
,想要安装版本
3
,那么要么在系统范围内安装,要么安装在
virtualenv
中仅供自己使用(参见
19.3.2
节和
B.4
节)。本附录将展示如何在系统范围内安
Python 3
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