手册
文章 标签 系列 关于
手册
取消
文章标签系列关于

pip 安装 Python 库到指定目录

HenryZ  2022-04-23  更新于  2022-07-05 
目录

可以使用 t (target) 选项来指定安装的位置。

举例:

pip install -r requirements.txt -t /path/to/directory

安装到当前路径:

pip install -r requirements.txt -t .

参考

  • https://pip.pypa.io/en/stable/reference/pip_install/#cmdoption-t
 Python, Pip
返回 | 主页
2025  手册  toulan.fun
[ 技术手册 ]