创建页面,内容为“一个 Python 包管理器。 https://github.com/pypa/pip == 常用命令 == * 将当前环境的依赖输出成一份文稿,以便在其他环境安装<ref>https://pip.pypa.io/en/stable/cli/pip_freeze/#examples</ref><syntaxhighlight lang="shell"> pip freeze > requirements.txt </syntaxhighlight> * 在新环境重新安装依赖<syntaxhighlight lang="shell"> pip install -r requirements.txt </syntaxhighlight> {{联系天明}} == 参考资料 == <references />”
 
无编辑摘要
 
(未显示同一用户的1个中间版本)
第1行: 第1行:
一个 Python 包管理器。
一个 [[Python]] [[包管理器]]。


https://github.com/pypa/pip
https://github.com/pypa/pip
第5行: 第5行:
== 常用命令 ==
== 常用命令 ==


* 将当前环境的依赖输出成一份文稿,以便在其他环境安装<ref>https://pip.pypa.io/en/stable/cli/pip_freeze/#examples</ref><syntaxhighlight lang="shell">
* 将当前环境的[[依赖]]输出成一份文稿,以便在其他环境安装<ref>https://pip.pypa.io/en/stable/cli/pip_freeze/#examples</ref><syntaxhighlight lang="shell">
pip freeze > requirements.txt
pip freeze > requirements.txt
</syntaxhighlight>
</syntaxhighlight>
第15行: 第15行:
== 参考资料 ==
== 参考资料 ==
<references />
<references />
[[分类:软件包管理系统]]

2025年1月8日 (三) 21:46的最新版本

一个 Python 包管理器

https://github.com/pypa/pip

常用命令

  • 将当前环境的依赖输出成一份文稿,以便在其他环境安装[1]
    pip freeze > requirements.txt
    
  • 在新环境重新安装依赖
    pip install -r requirements.txt
    

如有内容修改建议,请联系天明

参考资料