Pymode Vim cannot run libraries from anaconda

If I write this in vim

1 import numpy as np  
2   
3 i = np.array([[1, 2], [3, 4]])      
4 print(i)

      

and if I enter leader,r

to execute the code on pymode-VIM I get

file.py                                                       4,8            Bot
file.py|1 error| in <module> import numpy as np ImportError: No module named 'numpy

      

But it does :!python3 file.py

on vim, I get the results I want.

I just don't know what's going on. I want it to be installed on the Anaconda python3 distribution that I installed here.

in the .vimrc file, I already put the line: let g:pymode_python = 'python3'

I am using Ubuntu

Thank you in advance

+3


source to share





All Articles