Unable to transform numpy array to tensor

When I use torch.tensor to transform a numpy array into a tensor using Spyder or VS code, I receive error message:" storage_module && PyModule_Check(storage_module) INTERNAL ASSERT FAILED at “C:\cb\pytorch_1000000000000\work\torch\csrc\DynamicTypes.cpp”:101, please report a bug to PyTorch".
But If I run my code on Jupyter, there is no such error. May I inquire why this happens?