ERROR: virtualenvwrapper could not find virtualenv in your path

后端 未结 12 1932
广开言路
广开言路 2021-02-01 01:06

I\'m trying to create a virtualenv with virtualenvwrapper, but when I use mkvirtualenv I get the following :

ERROR: virtualenvwrapper c         


        
12条回答
  •  醉酒成梦
    2021-02-01 01:29

    ERROR: virtualenvwrapper could not find virtualenv in your path
    

    This error means - program virtualenv is not in your system path. This mostly happens if you install virtualenv via pip without sudo. This kind of installation stores data in users local directory e.g ~/.local/bin. So first step is to find where this binary present. You can do that using locate program. First update its database using sudo updatedb. Then run locate *bin/virtualenv. Whatever path you get, append it in system path variable. This you can do by adding below line in your shell config file e.g. ~/.bashrc or ~/.zshenv.

    export PATH=$PATH:/your/path
    

    e.g.

    export PATH=$PATH:~/.local/bin
    

    Now open new shell and try again. Error should be gone.

提交回复
热议问题