Error '[defx] defx requires Python3 support("+python3")' on Windows10, Vim8
See original GitHub issueWarning: I will close the issue without the minimal init.vim and the reproduction instructions.
Problems summary
I’m getting this error on :Defx
command run:
[defx] defx requires Python3 support("+python3").
Vim is compiled with Python3
, pynvim
is installed. It works fine on NeoVim.
Expected
Vim8 should be able to run :Defx
.
Environment Information
-
defx version(SHA1): commit SHA-1: 0a42be58745b2b0a19f6d59ca6238d1dfc96a07b
-
OS: Win10 x64
-
neovim/Vim version: VIM - Vi IMproved 8.1 (2018 May 18, compiled Oct 29 2019 23:02:14)
-
:checkhealth
or:CheckHealth
result(neovim only):
Provide a minimal init.vim/vimrc with less than 50 lines (Required!)
let g:python3_host_prog = '~\AppData\Local\Programs\Python\Python38\python.exe'
call plug#begin('~/.vim-plug')
Plug 'Shougo/defx.nvim'
Plug 'roxma/nvim-yarp'
Plug 'roxma/vim-hug-neovim-rpc'
call plug#end()
The reproduce ways from neovim/Vim starting (Required!)
- Start Vim8
- Run
:Defx
- Get error
Screen shot (if possible)
Upload the log file
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Developers - Error '[defx] defx requires Python3 support("+ ...
Error '[defx] defx requires Python3 support("+python3")' on Windows10, Vim8.
Read more >Deoplete requires Python3 support error : r/neovim - Reddit
First, set g:python3_host_prog to point to the location of your python 3 executable. Second, update or install pynvim package for that python3 distribution...
Read more >python - Support doesn't work - Stack Overflow
On nvim-startup I get the message UltiSnips requires py >= 2.7 or py3 and for deoplete It requires Neovim with Python 3 support...
Read more >Installing vim8.2 with python3.8 : Python.h not found
This directory is not in the search path for include files. So it has to be added manually. export CFLAGS="-I$LOCAL_INSTALL/include/python3.8" .
Read more >How do I install vim on OSX with Python 3 support? - Super User
In the google searches I've done, the command I should be using is brew install vim --with-python3 , which succeeds without error, but...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
OK. The problem is fixed.
You’re right, thanks for clarification. I’ve misinterpreted
+python3/dyn
assumed it was as good as+python3
.I guess I was fooled a bit by this (https://github.com/roxma/nvim-yarp#requirements):
When it seems like
g:python3_host_prog
is mainly used innvim
. On Vim8 I had to use these two:Actually I still had to set
g:python3_host_prog
forhttps://github.com/roxma/nvim-yarp
.I’ve ran into two minor issues after that, but that’s my final, working, minimal rc (Vim8):
Sorry for taking your time.