skywind3000 / vim-rt-format

:sunglasses: Prettify Current Line on Enter !!
MIT License
112 stars 4 forks source link

Always say "ERROR: require python module autopep8" #3

Closed hstk30 closed 2 years ago

hstk30 commented 2 years ago

I'm sure that I had install autopep8 whichever version python2 or python3, but still have this error.

I see source code, I'm not good at vim code):

if g:rtf_python == 0
     if has('python3')
         let s:py_cmd = 'py3'
         let s:py_eval = 'py3eval'
         let s:py_version = 3
     elseif has('python')
         let s:py_cmd = 'py'
         let s:py_eval = 'pyeval'
         let s:py_version = 2
     endif

The cmd py3 I only see in windows, so I just change the code to

 let s:py_cmd = 'python3'
 let s:py_eval = 'pyeval'
 let s:py_version = 3

and install package pyeval==0.2 (I guess).

But still have this ERROR.