Error in Python script after upgrade Python version from 3.6 to 3.10.5

unable to run python script after upgrade Python version from 3.6.8 to 3.10.5.Migrating process to new machine I downloaded python 3.10.5 and all pip packages. But still error occurs like "one or more error occurred " but script still working good in python 3.6.8 in old machine.

@Prathibabala

Please open the error message or details from locals panel to see the exact error

for 3.9+ specifying the library location is mandate

cheers