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