Your problem its not to write python before. U can take your enviroment in anaconda and its fine, but in the moment to write "import torch, print bla bla bla" just before write "python", simple, now use python raw and its fine.