【问题标题】:Is it possible to move pip packages from one python version to another? [duplicate]是否可以将 pip 包从一个 python 版本移动到另一个版本? [复制]
【发布时间】:2020-12-30 01:38:12
【问题描述】:

我使用 python 3.8 已经有一段时间了,但现在我想使用 python 3.9。问题是我在 3.8 文件夹中安装了很多包。是否可以将所有这些包“移动”到 3.9 文件夹?或者任何人都可以建议我一个更好的方法来处理这个问题?

【问题讨论】:

标签: python python-3.x pip


【解决方案1】:

您可以通过以下方式制作需求 .txt 文件: pip freeze > requirements.txt

在安装 python 3.9 类型之后(在您创建 requirements.txt 的同一目录中): pip install -r my_packages.txt

this post所示

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-07-27
    • 1970-01-01
    • 1970-01-01
    • 2021-03-17
    • 2018-08-02
    • 1970-01-01
    相关资源
    最近更新 更多