按照此页面上的说明操作:
http://pyclewn.sourceforge.net/install.html
https://sourceforge.net/projects/pyclewn/
我下载了pyclewn 1.8(py2)并解压缩到〜/ pyclewn1.8
然后我跑了
sudo python setup.py install --force
但是我收到了以下错误:
Failed to run 'gvim' as Vim.
Please set the EDITOR environment variable or run 'pyclewn
Traceback (most recent call last):
File "setup.py", line 46, in <module>
vimdir = pyclewn_install.vimdir()
File "/home/azureuser/pyclewn1.8/clewn/misc.py", line 85
ret = f(*args)
File "/home/azureuser/pyclewn1.8/pyclewn_install.py", li
path = vim.exec_vimcmd(['echon $VIM'])
File "/home/azureuser/pyclewn1.8/clewn/vim.py", line 96,
subprocess.Popen(args).wait()
File "/usr/lib/python2.7/subprocess.py", line 710, in __
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1327, in _
raise child_exception
OSError: [Errno 2] No such file or directory
我使用google和stackoverflow进行搜索,只找到一个文档:
How to properly install pyclewn for VIM?
请参阅上面的链接,我尝试设置EDITOR = $ HOME / .vim,VIM = $ HOME / .vim和vimdir = $ HOME / .vim,并导出所有这些,再次运行setup.py上面,但得到了同样的错误。
我的操作系统是Ubuntu
Linux auser 3.13.0-40-generic #69-Ubuntu SMP Thu Nov 13 17:53:56 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Python版本是2.7.6
vi版本
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jan 2 2014 19:39:32)
Included patches: 1-52
Modified by pkg-vim-maintainers@lists.alioth.debian.org
Compiled by buildd@
我查看似乎已经安装了相关的组件netbeans。
apt-cache pkgnames | grep netbeans
libnetbeans-cvsclient-java
netbeans
到目前为止,我还不知道继续安装pyclewn。
任何想法都会非常感激。多谢。