Lektor在Linux(Mint 19和Raspbian-armv7l 2018-10)上安装时崩溃,并显示“找不到文件错误”
已安装Python 2.7和3.5。
sudo apt-get install python-dev libssl-dev libffi-dev确定
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]没有这样的文件或目录
这不会激发对该产品的信心。
有帮助吗?
谢谢。
答案 0 :(得分:2)
这是您的Lektor版本的已知问题:
https://github.com/lektor/lektor/issues/619
担心:
对于我的系统,将第124行更改为以下内容后,install.sh起作用了:
Popen([sys.executable, './src/virtualenv.py', lib_dir], cwd=t).wait()