bash: mkvirtualenv: command not found

后端 未结 11 1495
天命终不由人
天命终不由人 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:58

    On Windows 7 and Git Bash this helps me:

    1. Create a ~/.bashrc file (under your user home folder)
    2. Add line export WORKON_HOME=$HOME/.virtualenvs (you must create this folder if it doesn't exist)
    3. Add line source "C:\Program Files (x86)\Python36-32\Scripts\virtualenvwrapper.sh" (change path for your virtualenvwrapper.sh)

    Restart your git bash and mkvirtualenv command now will work nicely.

提交回复
热议问题