我尝试在脚本中激活No such file or directory
时收到virtualenv
。
该项目名为hive
,位于/home/sys_hive/analytics/hive
我的bin
目录位于/home/sys_hive/analytics/hive/hive
$ pwd
/home/sys_hive/analytics/hive/hive
$ ls
run_scripts utils
$ cd ..; ls
bin include
Project structure:
/utils
prog.py
/runscripts
script.sh
在script.sh
中 #!/usr/bin/env bash
source ../../bin/activate
python -m utils.prog -a 1 -b 2 # not sure what to do here to call prog.py
deactivate
遇到source ../../bin/active
ERROR: line 3: ../../bin/activate: No such file or directory
我不确定我是否会正确调用我的python脚本