1

Lektor 在 Linux(Mint 19 和 Raspbian-armv7l 2018-10)上安装时崩溃,并出现“找不到文件错误”

已安装 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] 没有这样的文件或目录

4

1 回答 1

2

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

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

解决方法:

对于我的系统, install.sh 在将第 124 行更改为以下内容后起作用:

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

于 2018-11-23T01:04:40.877 回答