Broken references in Virtualenvs

前端 未结 26 1211
一整个雨季
一整个雨季 2020-11-27 08:53

I recently installed a bunch of dotfiles on my Mac along with some other applications (I changed to iTerm instead of Terminal, and Sublime as my default text editor) but eve

26条回答
  •  情深已故
    2020-11-27 09:26

    After trying a few things, this worked for me:

    go to your virtualenv directory (but don't run workon):

    cd ~/.virtualenv/name_of_broken_venv
    

    Now delete these files:

    rm -rf .Python bin/python* lib/python2.7/* include/python2.7
    

    Then to rebuild your venv, run:

    virtualenv .
    workon name_of_broken_venv
    pip freeze
    

    You should now see a list of your installed packages again.

提交回复
热议问题