The TorchSAR package can be easily installed by
pip install torchsar. After it is installed, just excute
import torchsar as ts to import the package.
If you want to install torchcs on Windows system. The C/C++ build tools should be installed firstly! Just download it from here , and select the follow components to install.