Batch equivalent of “source” on Windows: how to run a Python script from a virtualenv

后端 未结 3 1825
情歌与酒
情歌与酒 2020-12-13 09:05

I\'ve done a fair bit of bash scripting, but very little batch scripting on Windows. I\'m trying to activate a Python virtualenv, run a Python script, then deactivate the vi

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-13 09:45

    I made a .lnk file that points to cmd /k "path/to the/script/activate.bat", and it works.

    CMD parameters & options

提交回复
热议问题