Terminal issue with virtualenvwrapper after Mavericks Upgrade

后端 未结 8 2094
离开以前
离开以前 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 21:12

    Re-arrange the export order so that the python path is placed before the virtualenv commands in your .bash_profile file.

    # python path
    export PATH=/usr/local/bin:$PATH
    
    # needed for virtualenvwrapper
    export WORKON_HOME=$HOME/.virtualenvs
    source /usr/local/bin/virtualenvwrapper.sh
    
    0 讨论(0)
  • 2020-12-07 21:17

    I wouldn't recommend running pip with sudo. This was my solution for the same problem (after upgrading to Mavericks).

    In essence, uninstall any virtualenv and brewed Python you had before (use which <command> to check that you removed everything except the system Python in /usr/bin/python) and cleanly install them once again:

    brew install python --with-brewed-openssl
    # Open a new terminal tab now (to access /usr/local/bin/python)
    pip install virtualenv
    pip install virtualenvwrapper
    
    0 讨论(0)
提交回复
热议问题