系统详细信息:
操作系统:Ubuntu 19.04
Anaconda版本:2019.03
Python版本:3.7.3
mlflow版本:1.0.0
复制步骤: https://mlflow.org/docs/latest/tutorial.html
行/命令错误: $FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh
local track_widget_creation_flag=""
if [[ -n "$TRACK_WIDGET_CREATION"
&& "${build_mode}" == "debug"
]]; then
track_widget_creation_flag="--track-widget-creation"
fi
错误: 命令'source activate mlflow-c4536834c2e6e0e2472b58bfb28dce35b4bd0be6 1>&2 && gunicorn --timeout 60 -b 127.0.0.1:1234 -w 4 mlflow.pyfunc.scoring_server.wsgi:app'返回的非零返回码。返回码= 1
终端日志:
<bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver"/>
答案 0 :(得分:0)
按照GitHub问题1507(https://github.com/mlflow/mlflow/issues/1507)中提到的步骤,我能够解决此问题。
在引用此帖子时,绝不会将“ anaconda / bin / ”目录添加到环境变量(即PATH变量)列表中。为了解决此问题,请将〜/ .bashrc文件中的conda初始化代码块的“ else ”部分添加到PATH变量中。
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/home/atulk/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/home/atulk/anaconda3/etc/profile.d/conda.sh" ]; then
. "/home/atulk/anaconda3/etc/profile.d/conda.sh"
else
export PATH="/home/atulk/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
在这种情况下,我在PATH变量中添加了 export PATH =“ / home / atulk / anaconda3 / bin:$ PATH” 。但是,这只是临时解决方案,直到项目中的问题得到解决为止。
答案 1 :(得分:0)
export PATH = $ PATH:/path/to/python/Python/2.7/bin 不使用水蟒时可以使用