擅长:python、mysql、java
<p>使用包管理器(pip)的要点之一是可移植性。对于pip,您只需包含一个要求.txt在您的项目中,您可以在任何计算机上使用它,无论是Windows、Linux还是Mac。当移动到一个新的环境/操作系统时,pip将负责为您正确安装软件包;请注意,软件包可以有特定于操作系统的步骤,这样当您移动到另一个操作系统时,复制粘贴的Windows设置现在就可以工作了。你知道吗</p>
<p>此外,使用copy-paste方法,您可以将大部分依赖项带到任何地方。我想如果你想切换机器(不一定是操作系统),你就把所有的东西从项目代码复制到依赖项。使用pip,您可以保持您的工作目录更精简,所有这些都是以单个目录为代价的要求.txt. 你知道吗</p>