I explained it in the following post, pleas take a look at the part of the installation and implementation of sen2cor
Source of the post