未验证 提交 9197b7f7 编写于 作者: R risemeup1 提交者: GitHub

fix_setup.py_problem (#52465)

上级 9ccf4f3a
......@@ -1457,10 +1457,12 @@ Please run 'pip install -r python/requirements.txt' to make sure you have all th
reqs = subprocess.check_output([sys.executable, '-m', 'pip', 'freeze'])
for r in reqs.split():
installed_packages.append(re.sub("_|-", '', r.decode().split('==')[0]))
installed_packages.append(
re.sub("_|-", '', r.decode().split('==')[0]).lower()
)
for dependency in python_dependcies_module:
if dependency not in installed_packages:
if dependency.lower() not in installed_packages:
raise RuntimeError(missing_modules.format(dependency=dependency))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册