如何使用 setup.py 仅安装依赖项? [英] How to use setup.py to install dependencies only?

查看:63
本文介绍了如何使用 setup.py 仅安装依赖项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对安装我的包本身不感兴趣,但我有兴趣安装我的包使用的所有依赖项.有没有办法使用 setup.py 做到这一点?似乎 setup.py 安装了我的包和所有依赖项.

I am not interested in installing my package itself but I am interested installing all the dependencies used by my package. Is there a way to do this using setup.py? It seems setup.py installs my package and all dependencies.

推荐答案

在 pip install 上使用 -e 标志

Use the -e flag on pip install

pip install -e .

这篇关于如何使用 setup.py 仅安装依赖项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆