• A Non-Magical Introduction to Pip and Virtualenv for Python Beginners
• The Hitchhiker
’
s Guide to Packaging: Pip
B.5
其他打包解决方案
如你所见,
Python
的打包技术各不相同,没有一劳永逸的方法。
PyPA
(
Python Packaging
Authority
)是一个尝试简化
Python
打包的志愿者工作组
(不属于官方
Python
开发核心
组)。该小组编写了
Python
打包用户指南(
Python Packaging User
’
s Guide
)
,
其中讨论了目
前的问题及解决方案。
最流行的工具是
pip
和
virtualenv
,这也是本书一直在使用的。如果两者不能满足你的需
要,或是你想尝试点儿新东西,下面是一些备选。
•
pipenv
结合了
pip
和
virtualenv
的特性并添加了更多功能。
•
作为竞争对手,
poetry
解决了
pipenv
的一些问题。
不过,最出类拔萃的打包方式还是
conda
,特别是对于科学和数据密集型应用。你可以
把它作为接下来会讲到的
Anaconda ...
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.