curl: (23) Failed writing body (1354 i= 1371)问题解决办法

背景

安装jupyter的时候执行了教程里面的

curl -L https://tljh.jupyter.org/bootstrap.py | sudo -E python3 - --admin danzhao

结果报错

 % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0sudo: python3: command not found
  0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0
 29 13989   29  4113    0     0   1416      0  0:00:09  0:00:02  0:00:07  8193
curl: (23) Failed writing body (1354 != 1371)

看到这一句curl: (23) Failed writing body (1354 != 1371)

查不到一模一样的错误

解决

Python路径问题
找到Python路径

whereis python

然后改成全路径执行

curl -L https://tljh.jupyter.org/bootstrap.py | sudo -E /www/server/panel/pyenv/bin/python - --admin danzhao

3分钟后执行成功


截至目前,多端jupyter仅支持ubuntu

The Littlest JupyterHub currently supports Ubuntu Linux only
上一篇:nginx: [error] open() “/usr/local/nginx/logs/nginx.pid“ failed (2: No such file or directory)


下一篇:Failed to configure a DataSource: ‘url‘ attribute is not specified