首页 > 其他 > 详细

Fish 下报错 Unsupported use of '||'. In fish, please use 'COMMAND; or COMMAND'.

时间:2018-12-01 16:32:22      阅读:414      评论:0      收藏:0      [点我收藏+]

在用fish激活virualenv虚拟环境时,使用命令: source ./venv/bin/activate 报错

./venv/bin/activate (line 23): Unsupported use of ‘||‘. In fish, please use ‘COMMAND; or COMMAND‘.

    if [ -n "${BASH-}" ] || [ -n "${ZSH_VERSION-}" ] ; then

                          ^

from sourcing file ./venv/bin/activate

called on standard input

 

source: Error while reading file ‘./venv/bin/activate‘

 

解决方法:

https://github.com/pypa/virtualenv/issues/886

替换activate为activate.fish

 

Fish 下报错 Unsupported use of '||'. In fish, please use 'COMMAND; or COMMAND'.

原文:https://www.cnblogs.com/lecoz/p/10049724.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!