在虚拟环境中使用pip生成: (venv) $ pip freeze >requirements.txt 当需要创建这个虚拟环境的完全副本,可以创建一个新的虚拟环境,并在其上运行以下命令: (venv) $ pip install -r requirements.txt 相关文章: 2022-12-23 2021-08-03 2022-12-23 2022-12-23 2021-05-07 2021-06-13 2021-11-12