如何将whl文件列为依赖项设置.py

2024-06-26 11:00:21 发布

您现在位置:Python中文网/ 问答频道 /正文

注意:我对python非常陌生(我来自gradlemaven世界)

我读了这个博客: https://underyx.me/2015/11/23/adding-an-unreleased-commit-as-a-dependency 还有这个: https://caremad.io/2013/07/setup-vs-requirement/

据我所知,没有办法指定外部依赖性(在我的例子中是tensorflow)

列为pip的安装文件 https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl

至少不用设置.py这应该是建立任何项目的官方方式。在

因此,首先有没有什么方法可以让人们用一个单一的命令来设置他们的项目。在

如果不是的话,这是安装这个外部依赖项的最简单的方法,除了制作一个bash脚本来为我的所有依赖项运行pip install BLAH之外?在


Tags: pip项目方法httpsanlinuxtensorflow世界