LeCoz

导航

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

在用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

 

posted on 2018-12-01 15:50  LeCoz  阅读(1086)  评论(0编辑  收藏  举报