ERROR: virtualenvwrapper could not find virtualenv in your path

后端 未结 12 1918
广开言路
广开言路 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:37

    1. sudo find / -name "virtualenv"

      Then I find the executable file path is:

      /usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/bin/virtualenv

    2. Touch a soft link in the /usr/local/bin/ directory or add the path to .bash_profile, I prefer the former:

      sudo ln -s /usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/bin/virtualenv /usr/local/bin/virtualenv
      

提交回复
热议问题