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

Posted lecoz

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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

 


以上是关于Fish 下报错 Unsupported use of '||'. In fish, please use 'COMMAND; or COMMAND'.的主要内容,如果未能解决你的问题,请参考以下文章

MatConvNet编译报错:Error using mex nvcc fatal : Unsupported gpu architecture ‘compute_20‘ 解决办法

EFCore 3 GroupJoin下报错

CI ~ CodeIgniter在nginx下报错404 Not Found ,解决办法

CI ~ CodeIgniter在nginx下报错404 Not Found ,解决办法

bootstrap-datetimepicker在火狐下报错的问题

servlet 中web.xml在eclipse下报错?