在git bash上运行make返回python错误

问题描述

我正在尝试通过git bash在Windows 10上运行此代码https://github.com/adeboissiere/FUSION-human-action-recognition。但我在step4中遇到问题。 git bash不会运行在makefile中设置的python文件。运行.py文件有问题,但我不知道如何解决。 python在sysytem上还可以,并且git bash知道python,但我不知道为什么在makefile上它不起作用。 请帮助我,我是makefile的新手。 例如,我输入以下命令:

make requirements

错误是这样的:

python3 test_environment.py
Python was not found but can be installed from the Microsoft Store: 
https://go.microsoft.com/fwlink?linkID=2082640make: *** [Makefile:161: 
test_environment] Error 9009

makefile的一部分是这样的:

.PHONY: clean data lint requirements sync_data_to_s3 sync_data_from_s3

PROJECT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
BUCKET = [OPTIONAL] your-bucket-for-syncing-data (do not include 's3://')
PROFILE = default
PROJECT_NAME = fusion
PYTHON_INTERPRETER = python3

## Install Python Dependencies
requirements: test_environment
   $(PYTHON_INTERPRETER) -m pip install -U pip setuptools wheel
   $(PYTHON_INTERPRETER) -m pip install -r requirements.txt

## Test python environment is setup correctly
test_environment:
   $(PYTHON_INTERPRETER) test_environment.py

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)