Wednesday, July 26, 2017

vim in mac problem with python mode

ปัญหา: จะเขียนโปรแกรมภาษา python ผ่าน vim โดยใช้ python-mode เป็นตัวช่วยเขียน IDE 
พอ install เสร็จ แล้วเรียกไฟล์    .py มาแก้ไข ก็เกิดปัญหา 

Error detected while processing /.vim/bundle/python-mode/autoload/pymode/lint.vim
line  1:
สาเหตุ: เนื่องจาก vim ที่ mac ให้มาเป็น version 7.4  ซึ่ง complied โดย python 2.6 ทำให้เกิดปัญหาดังกล่าว   

การแก้ไข: ทำการ install vim ใหม่ โดยใช้คำสั่ง . 
   
    brew install vim --overide-system-vi

     จากนั้นก็ทำการแก้ไข alias ใหม่ 

    alias vim='/usr/local/Cellar/vim/8.0.0771_1/bin/vim'



4 comments:

tim mark said...

These days, the speed of innovative achievements has no chronicled point of reference. machine learning certification

Priya Rathod said...

I am happy to visit here. Thanks to my friend who told me about this webpage, this blog is really awesome.
Data Science Training in Hyderabad
Data Science Course in Hyderabad

Dana said...

Python helps to make a lot of things possible.

Arnold DK said...

Excellent article. Keep posting such kind of information on your blog. Thanks for sharing these information with all of us. whatsapp mod