Can not call shotgun in maya 2020

At first, I have run my pipeline package on maya 2020.4 then it crashed. after that I’m trying to import module by module of the package. then I found the shotgun can not be called in maya

This is my code

import shotgun _api3
sg = shotgun_api3.Shotgun(site_name, script_name, api_key)

then it’s crashed again.

I check with python.exe. It can work fine. Anyone got this issue like me and how can you solve it?

I try to ping google.com on maya session and it crashed too ==
It happened only on new machines in my studio. which I don’t think it related to its hardware, but FYI.

CPU Intel Core I7-11700KF
M/B ASROCK Z590M PRO4
RAM 32GB Bus 3200
VGA GTX1660 Super/RTX 2060
SSD Samsung M.2 980 500GB Nvme/M.2 WD Blue 500GB Nvme
HDD WD Blue 1TB
OS Windows 10 20H2/21H1
CPU Cooler Cooler Master MasterAir MA410M
PSU CORSAIR RM850 850WATT 80+ GOLD