I have followed the instructions from here https://github.com/Valloric/YouCompleteMe and have installed both:
Cmake sudo apt-get install build-essential cmake
and Python Headers sudo apt-get install python-dev python3-dev
Then I cd ~/.vim/bundle/YouCompleteMe
and runned:
./install.py --clang-completer
I got:
Searching Python 2.7 libraries...
ERROR: unable to find an appropriate Python library.
I then tried
python3 install.py --clang-completer
but still got:
Searching Python 3.4 libraries...
ERROR: unable to find an appropriate Python library.
Does anybody have an idea of what is going on? Thanks
maybe this can help you => Issue #2162
The script isn't finding the path to your python libraries. You might want to make sure you have setuptools installed before you do the following:
The error you're seeing is probably being returned by function FindPythonLibrariesOnLinux() on line 149 in ~/.vim/bundle/YouCompleteMe/third_party/ycmd/build.py
You can run just the part of script that's causing you problems by creating a file called youcompletemetest.py and fill it with the following code:
You can run that file with:
For me that will output
But for you it's not able to locate python. If you know where python is installed you can find that path and replace the entire content of the function called FindPythonLibrariesOnLinux() with an array that contains the locations of your python libraries.
So open the source file:
Find the function that's not's working: /^def\sFindPythonLibrariesOnLinux
Change that function so it only returns the full path to your python libraries (the following in my case):
Now you will be able to continue with the installation:
While enabling YouCompleteMe on cygwin, after installing python-devel package for python 3.4 only statically linked (*.a) version of the library is available: libpython3.4.dll.a.
So I modified:
with:
I'm using: (CYGWIN_NT-10.0 2.7.0(0.306/5/3) 2017-02-12 13:18 x86_64 Cygwin)