【发布时间】:2022-12-01 21:10:25
【问题描述】:
I have a python file main.py in which I am importing github package [import github]
I have created a build file as follows:
py_binary(
name = "main",
srcs = ["main.py"],
visibility = ["//visibility:public"]
)
When I run this through Bazel command, bazel run: main, I am gettingModuleNotFoundError: No module named 'github'.
Can someone please tell how to include python libraries inside build file and run through Bazel?
Note:I have already installed github (version: 1.2.7) through Python and it is getting updated using pip list from command prompt
【问题讨论】:
标签: python build bazel modulenotfounderror