我有一个后接收钩子,它无法获取我创建的virtualenv:
listView = (ListView) rootView.findViewById(R.id.list);
由于未加载virtualenv,hooks因安装需求而失败
我已经在文件顶部有一个shebang行:
echo "[PRE] Cargando entorno virtual..." | printar
source $BASE_PATH$VENV_PRE_PATH/bin/activate | printar
echo "[PRE] Cargando entorno virtual... OK" | printar
echo "[PRE] Instalando dependencias de requirements.txt..." | printar
pip install -r $BASE_PATH$SRC_PRE_PATH/requirements/pre.txt | printar
echo "[PRE] Instalando dependencias de requirements.txt... OK" | printar
正如此问题解释Why can't my post-receive hook run a virtualenv source command?
这是远程输出:
#!/bin/bash
你知道为什么这不起作用吗?
答案 0 :(得分:0)
解决了
/path/to/venv/bin/pip install -r /path/to/requirements.txt