Lektor 安装在 Linux 上失败

Lektor installation fails on Linux

Lektor 在 Linux(Mint 19 和 Raspbian-armv7l 2018-10)上安装时崩溃,出现 'File not found error'

Python 2.7 和 3.5 已安装。
sudo apt-get install python-dev libssl-dev libffi-dev OK
sudo apt-get install imagemagick OK

curl -sf https://www.getlektor.com/install.sh | sudo sh
This script will install Lektor on your computer.
Installing at:
  bin: /usr/local/bin
  app: /usr/local/lib/lektor
Continue? [Yn] y -> CRASH !
/usr/bin/python: can't open file './virtualenv.py': [Errno 2] No such file or directory  
Traceback (most recent call last):   
File "<stdin>", line 148, in <module>  
File "<stdin>", line 143, in main
File "<stdin>", line 107, in install
File "/usr/lib/python2.7/subprocess.py", line 390, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child
raise child_exception

OSError: [Errno 2] 没有那个文件或目录

这是您的 Lektor 版本的一个已知问题:

https://github.com/lektor/lektor/issues/619

WORKAROUND:

For my system, install.sh worked after changing line 124 to this:

Popen([sys.executable, './src/virtualenv.py', lib_dir], cwd=t).wait()