sansyrox / vim-python-virtualenv

A vim plugin which automatically manages the python virtual envs for you
MIT License
17 stars 2 forks source link

Failed to load python3 host #1

Closed devrrior closed 3 years ago

devrrior commented 3 years ago

Hi, I installed the plugin and add "let g:python3_host_prog='/usr/bin/python3'" in my configuration file (init.vim). But when I use neovim, it return the following:

image

Neovim: 0.4.4 Python: 2.7.16

Thanks.

sansyrox commented 3 years ago

Hi @devrrior 👋

Can you please share the output by running the following command in your terminal:

which python3
devrrior commented 3 years ago

Sure. That return the following:

image I suppose that directory I should add, right?

sansyrox commented 3 years ago

Yes, @devrrior . Now, you need to do this

"let g:python3_host_prog='/usr/local/bin/python3'"

Also, out of curiosity, how did you stumble on this repo? 😅

And please do consider starring the repo if it helps you in any way.

devrrior commented 3 years ago

Thank, now that's working. I stumbled on this repo because search in google how to solve the problem with virtualenv and vim/neovim, so I found your post in dev.to.