[英]How can I export installed libraries on Python to one install shell?
Recently, I'm changing Linux distro from PopOs to Ubuntu, and there is a lot of libraries installed by pip on Python that I want to bring on.最近,我正在将 Linux 发行版从 PopOs 更改为 Ubuntu,并且我想在 Python 上通过 pip 安装很多库。 Could I migrate from these other distros, exporting and import all installed libraries on python?
我可以从这些其他发行版迁移,在 python 上导出和导入所有已安装的库吗? There's a way to do that?
有没有办法做到这一点?
You should read about the pip cache system and how to enabled in different OS.您应该阅读有关pip 缓存系统以及如何在不同操作系统中启用的信息。 If you already have a pip cache directory configured you can tell where is by:
如果您已经配置了 pip 缓存目录,您可以通过以下方式判断它在哪里:
pip cache dir
And then you could copy the content of your current cache dir to the one in your new distro.然后您可以将当前缓存目录的内容复制到新发行版中的内容。
References:参考:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.