Terminal issue with virtualenvwrapper after Mavericks Upgrade

后端 未结 8 2002
离开以前
离开以前 2020-12-07 20:41

After upgrading to OSX Mavericks, I am getting this message in the terminal:

/usr/bin/python: No module named virtualenvwrapper
virtualenvwrapper.sh: There w         


        
8条回答
  •  时光说笑
    2020-12-07 20:58

    You just need to configure the path properly. Run the following commands in the terminal:

    1. which python

    Output -

    /usr/bin/python
    
    1. which virtualenvwrapper.sh

    Output -

    /usr/local/bin/virtualenvwrapper.sh
    
    1. echo $VIRTUALENVWRAPPER_PYTHON

      /usr/local/bin/python

    So as you can see that the variable $VIRTUALENVWRAPPER_PYTHON is pointing towards the wrong python path. So we need to reset the path of variable $VIRTUALENVWRAPPER_PYTHON.

    1. export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python

    now run the following the command:

    source /usr/local/bin/virtualenvwrapper.sh 
    

提交回复
热议问题