【发布时间】:2021-02-10 14:45:22
【问题描述】:
我的 virtualenv 在 bash 中完美运行:
$ workon mylovelyenv
// do something
$ deactivate
当我尝试使用 makefile 进行自动化时,我无法做到:
$ cat makefile
all:
workon mylovelyenv #doesn't work
$(shell workon mylovelyenv) #doesn't work either
bash -c "workon mylovelyenv" #doesn't work either
python go.py
$(shell deactivate) # same here ...
【问题讨论】:
标签: bash makefile virtualenv virtualenvwrapper