Pip Linux上的Lektor安装失败

Pip Linux上的Lektor安装失败,pip,lektor,Pip,Lektor,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获取安装imagemagick OK curl-sfhttps://www.getlektor.com/install.sh |苏多什 此脚本将在您的计算机上安装Lektor。 安装地点: bin:/us

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获取安装imagemagick OK

curl-sfhttps://www.getlektor.com/install.sh |苏多什
此脚本将在您的计算机上安装Lektor。
安装地点:
bin:/usr/local/bin
应用程序:/usr/local/lib/lektor
继续?y->崩溃!
/usr/bin/python:无法打开文件“./virtualenv.py”:[Errno 2]没有这样的文件或目录
回溯(最近一次呼叫最后一次):
文件“”,第148行,在
文件“”,第143行,主
安装中第107行的文件“”
文件“/usr/lib/python2.7/subprocess.py”,第390行,在__
错误读取,错误写入)
文件“/usr/lib/python2.7/subprocess.py”,第1024行,在执行子进程中
引发子对象异常

OSError:[Errno 2]没有这样的文件或目录

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

解决方法:

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

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


问:hacking
install.sh是否为您解决了问题?很好。请“接受”答案。因此,它不会保持“开放”,因此其他可能遇到相同问题的人可以找到解决方法。
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