I installed anaconda on my laptop and installed a couple of packages including torch via pip.
After I selected the interpreter from anaconda, it looks like nothing was wrong:
But it gives me an error when I tried to import torch:
And if I run the program directly from vim, I get error reporting:
But if I run it from my terminal it works all fine:
By the way, apy in the command line means:
And the command that runs .py files from vim is:
I can see that I can't run the program from vim because I use /usr/bin/python to run the program, but it shouldn't give me errors in the file.
I installed
anaconda
on my laptop and installed a couple of packages includingtorch
viapip
. After I selected the interpreter fromanaconda
, it looks like nothing was wrong: But it gives me an error when I tried to importtorch
: And if I run the program directly fromvim
, I get error reporting: But if I run it from my terminal it works all fine:By the way,
apy
in the command line means: And the command that runs.py
files fromvim
is: I can see that I can't run the program fromvim
because I use/usr/bin/python
to run the program, but it shouldn't give me errors in the file.