Sim_vehicle.py ArduCopter build failed

When building sim_vehicle.py in a virtual python2.7 environment, the following error occurs:

Build failed
→ task in ‘objs/AP_AHRS’ failed (exit status 1):
{task 140538347518688: cxx AP_AHRS_NavEKF.cpp → AP_AHRS_NavEKF.cpp.0.o}
(run with -v to display more information)
SIM_VEHICLE: Build failed
SIM_VEHICLE: Killing tasks

Anyone have any leads on how to solve this??

ArduPilot requires python >= 3.6 AFAIK