Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/three.js/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 结构:意外标记附近的语法错误';(';_Python_Fabric - Fatal编程技术网

Python 结构:意外标记附近的语法错误';(';

Python 结构:意外标记附近的语法错误';(';,python,fabric,Python,Fabric,我有这样的fabfile.py: from fabric.api import * def deploy(): with prefix('source venv/bin/activate'): local('pex -r <(cat requirements.txt) . -o app.pex') 命令source-venv/bin/activate&&pex-r默认情况下使用/bin/sh作为shell来运行命令。此基本shell不支持/bin/bash将使用

我有这样的fabfile.py:

from fabric.api import *

def deploy():
    with prefix('source venv/bin/activate'):
        local('pex -r <(cat requirements.txt) . -o app.pex')
命令
source-venv/bin/activate&&pex-r默认情况下使用
/bin/sh
作为shell来运行命令。此基本shell不支持
/bin/bash
将使用的所有语法

如果必须访问bash shell语法,请设置
shell='/bin/bash'

local('pex -r <(cat requirements.txt) . -o app.pex', shell='/bin/bash'))
local('pex-r
local('pex -r <(cat requirements.txt) . -o app.pex', shell='/bin/bash'))