浪费了5个小时,所以不妨在这里问。
我能够毫无问题地编译vim(64位系统):
./configure --prefix=/usr --with-tlib=ncursesw --enable-luainterp \
--with-lua-prefix=/usr/local --disable-gui --disable-tclinterp \
--enable-cscope --without-x CPPFLAGS="${CPPFLAGS} -I/usr/include/ncursesw" \
--enable-python3interp=dynamic --enable-pythoninterp=dynamic \
--enable-multibyte && make
标志python / dyn和python3 / dyn都是活动的
但是,只要我尝试从vim中执行python命令:
E370: Could not load library
E263: Sorry, this command is disabled, the Python library could not be loaded.
为了让事情变得更加混乱,与msys2捆绑在一起的本地vim具有可用的python支持。切换目录后我发现它使用
我尝试将这些文件复制到不同的目录,并将名称更改为python27.dll或python2.7.dll。无济于事。