Import Error only when using CMD or IDE

when using anaconda prompt, I can import torch
but when i am using CMD or IDE, there exsits error.

Please print the environmental variable PATH and you 'll find the difference there.