Giter Club home page Giter Club logo

Comments (9)

Lokaltog avatar Lokaltog commented on July 22, 2024

You don't have vim compiled with Python support. Check out the documentation for details.

from powerline.

saks avatar saks commented on July 22, 2024

Thank you.

I cannot find instructions about how to compile vim with python support. Could you add more info to documentation.
To enable python support you should add following options:
--enable-pythoninterp --with-python-config-dir=/usr/lib/python2.7/config/, where /usr/lib/python2.7/config/ is specific to Ubuntu 12.04.*

from powerline.

Lokaltog avatar Lokaltog commented on July 22, 2024

Aw man, doesn't Ubuntu provide vim with Python support by default either? I'll add some more instructions to the docs, thanks for the tip. :)

from powerline.

saks avatar saks commented on July 22, 2024

Vim from Ubuntu package has python support but some crazy folks want to compile vim from source, so additional info could be useful :)
Thank you!

from powerline.

Lokaltog avatar Lokaltog commented on July 22, 2024

Ah, I see. Do you know if --with-python-config-dir is absolutely necessary on Ubuntu? I'm running Arch and I don't use that flag when compiling vim, so I just wondered if it works without the flag on Ubuntu as well.

from powerline.

saks avatar saks commented on July 22, 2024

Also we need to make sure that python header present in the system. On Ubuntu you can install it with
sudo apt-get install python2.7-dev

from powerline.

saks avatar saks commented on July 22, 2024

Oh, you're right. Actually it's not necessary. You just have to install python2.7-dev and vim will find it automatically. First time python2.7-dev wasn't installed on my machine, so vim failed to find it with:

checking for python2... /usr/bin/python2
checking Python version... 2.7
checking Python is 1.4 or better... yep
checking Python's install prefix... /usr
checking Python's execution prefix... /usr
checking Python's configuration directory... 
can't find it!

from powerline.

Lokaltog avatar Lokaltog commented on July 22, 2024

Thanks, I've updated the requirements section in the docs to include this information.

from powerline.

saks avatar saks commented on July 22, 2024

πŸ‘

from powerline.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.