码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2018-12-01 17:09:10      阅读:594      评论:0      收藏:0      [点我收藏+]

标签:port   style   standard   font   vat   ref   class   convert   .com   

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

标签:port   style   standard   font   vat   ref   class   convert   .com   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!