neoclide / coc-python

Python extension for coc.nvim, fork of vscode-python
574 stars 51 forks source link

Can't use my interpreter after I select it? #248

Open sleeperzjf opened 4 years ago

sleeperzjf commented 4 years ago

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: image But it gives me an error when I tried to import torch: image And if I run the program directly from vim, I get error reporting: image But if I run it from my terminal it works all fine: image

By the way, apy in the command line means: image And the command that runs .py files from vim is: image 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.