> ./configure --enable-python3interp=dynamic --enable-gui=gtk2
> --with-python3-config-dir=/usr/lib/python3.2/
make
vim --version|grep pyth
+cryptv +linebreak -python +viminfo
-cscope +lispindent +python3/dyn +vreplace
但如果我这样做: :python3 print('hi') 我得到:
E448: Could not load library function PySys_SetArgv
E263: Sorry, this command is disabled, the Python library could not be loaded.
答案1
我通过删除该行中的尾随“/”来修复此问题'--with-python3-config-dir=/usr/lib/python3.2/'
像这样:--with-python3-config-dir=/usr/lib/python3.2