Docker can offer rather a nice Answer. It is relatively easy to create a Dockerfile in addition to a Docker container image which incorporates the most up-to-date gcc and g++ compilers.From time to time the OS can't uncover pip so python or py -m could remedy the condition as it is python alone trying to find pip.You need to revamp this Dockerfile