coc-python
coc-python copied to clipboard
Can't use my interpreter after I select it?
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.