Activating a VirtualEnv using a shell script doesn't seem to work

后端 未结 5 1777
孤独总比滥情好
孤独总比滥情好 2020-12-23 19:16

I tried activating a VirtualEnv through a shell script like the one below but it doesn\'t seem to work,

#!/bin/sh
source ~/.virtualenvs/pinax-env/bin/activa         


        
5条回答
  •  半阙折子戏
    2020-12-23 19:57

    In my case, Ubuntu 16.04, the methods above didn't worked well or it needs much works.

    I just made a link of 'activate' script file and copy it to home folder(or $PATH accessible folder) and renamed it simple one like 'actai'.

    Then in a terminal, just call 'source actai'. It worked!

提交回复
热议问题