Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当 virtualenv 中的 pip 卸载失败时会发生什么?重新安装软件包是否足够聪明,或者它会引发异常并使 virtualenv 损坏?我正在制作卸载软件包、运行 pytest 并再次安装它们的脚本。我需要它来测试依赖项是否仍然是不必要的。
我认为它会使包装破损。pip install 和 pip uninstall 既不是原子的,也不是非常可靠的(当然不像 apt,它不是没有问题但更健壮)。