On Wednesday, 6 January 2016 23:04:17 UTC+8, Marslo Jiao wrote:
> On Wednesday, 6 January 2016 22:47:32 UTC+8, Marslo Jiao wrote:
> > On Wednesday, 6 January 2016 22:27:47 UTC+8, Marslo Jiao wrote:
> > > On Wednesday, 6 January 2016 21:25:22 UTC+8, Marslo Jiao wrote:
> > > :echo has('python') == 1
> > > BUT, :python print 'abc' ==> E887: Sorry, this command is disabled, the
> > > Python's site module could not be loaded.
> >
> > Okay, from this(http://stackoverflow.com/a/32026366/2940319) answer, I've
> > downgraded the python from 2.7.11 to 2.7.9. But the issue(E887) still there
>
>
> Vim is 64bit; python 2.7.9 is also 64bit:
> ===
> $ file -L "$(command -v vim)"
> /home/marslo/.marslo/myprograms/vim74/bin/vim: ELF 64-bit LSB executable,
> x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for
> GNU/Linux 2.6.32, BuildID[sha1]=265c9e9eefa3d0bcebe49011e8115601ae6e85ad,
> stripped
> $ file -L "$(command -v python)"
> /usr/local/bin/python: ELF 64-bit LSB executable, x86-64, version 1 (SYSV),
> dynamically linked (uses shared libs), for GNU/Linux 2.6.32,
> BuildID[sha1]=cfef76ad27f2141552a72a0d9f6340f0421bdd5b, not stripped
> $ python --version
> Python 2.7.9
> ===
>
> From this
> (https://groups.google.com/forum/#!msg/vim_dev/PkWFDWcg4iI/ymOA2QX1BQAJ)
> topic. They said the E887 is because of $PYTHONHOME. So I run command in vim:
> :let $PYTHONHOME="/usr/local/"
> :echo has('python')
> 1
> :python print 'abc'
> E887: Sorry, this command is disabled, the Python's site module could not be
> loaded.
>
> What should I do?
Well, here one thing looks odd, when compile python:
===
$ ./configure --prefix=/usr/local --enable-shared LDFLAGS="-Wl,-rpath
/usr/local/lib"
...
checking for --with-cxx-main=<compiler>... no
checking for g++... no
configure: WARNING:
By default, distutils will build C++ extension modules with "g++".
If this is not intended, then set CXX on the configure command line.
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
...
$ rpm -qa | grep gcc-c++
gcc-c++-4.8.5-4.el7.x86_64
=====
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.