Skip to Content
Python算法交易
book

Python算法交易

by Yves Hilpisch
November 2022
Intermediate to advanced
392 pages
10h 8m
Chinese
China Electric Power Press Ltd.
Content preview from Python算法交易
29
第 2 章
Python
基础架构
在建造房屋时,存在木材选择的问题。
木匠的目标是携带能很好切割的设备,并在他有时间时使设备更锋利,这一
点至关重要。
——宫本武藏《五轮书》
对于刚接触
Python
的人来说,
Python
部署看上去是很直接的,即便对于大量的库
和软件包也是如此。首先,有不止一种风格的
Python
,例如
CPython
,
Jython
,
IronPython
或
PyPy
。然后,
Python 2.7
和
3.x
之间仍然存在很大差别。本章重点介
绍最流行的
Python
编程语言版本,也就是
3.8
版本的
CPython
。
由于多种原因,即使仅专注于
CPython 3.8
(以下简称“
Python
”),部署仍然很
困难:
•
解释器(标准的
CPython
安装)仅带有所谓的标准库(例如,涵盖典型的数学
函数)。
•
可选的
Python
程序包需要单独安装,这样的程序包有数百个。
•
由于依赖关系和特定于操作系统的要求,自行编译(“构建”)此类非标准软
件包可能很棘手。
•
长期维护此类依赖关系和版本一致性通常既繁琐又耗时。
30
|
第
2
章
•
某些软件包的更新和升级可能会导致需要重新编译大量其他软件包。
•
改变或更换一个软件包可能在(很多)其他地方引入问题。
•
在稍后的某个时间从一种
Python
版本迁移到另一种版本可能会放大前面的所有 ...
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.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

人工智能技术与大数据

人工智能技术与大数据

Posts & Telecom Press, Anand Deshpande, Manish Kumar
图解大模型 : 生成式AI 原理与实战

图解大模型 : 生成式AI 原理与实战

Jay Alammar, Maarten Grootendorst

Publisher Resources

ISBN: 9787519869694