bash: mkvirtualenv: command not found

后端 未结 11 1427
天命终不由人
天命终不由人 2020-12-02 06:15

After following the instructions on Doug Hellman\'s virtualenvwrapper post, I still could not fire up a test environment.

[mpenning@tsunami ~]$ mkvirtualenv          


        
11条回答
  •  有刺的猬
    2020-12-02 06:51

    Solution 1:

    For some reason, virtualenvwrapper.sh installed in /usr/bin/virtualenvwrapper.sh, instead of under /usr/local/bin.

    The following in my .bash_profile works...

    source "/usr/bin/virtualenvwrapper.sh"
    export WORKON_HOME="/opt/virtual_env/"
    

    My install seems to work fine without sourcing virtualenvwrapper_bashrc

    Solution 2:

    Alternatively as mentioned below, you could leverage the chance that virtualenvwrapper.sh is already in your shell's PATH and just issue a source `which virtualenvwrapper.sh`

提交回复
热议问题