virtualenv: cannot import name 'main'

前端 未结 4 1380
情深已故
情深已故 2020-12-19 06:24

I\'m having a little trouble with virtualenv on Mac OS X Yosemite. After I couldn\'t run virtualenv at all first, I installed Python 3 via brew (previously I in

4条回答
  •  伪装坚强ぢ
    2020-12-19 07:07

    On Linux Mint 20, I had to switch default Python interpreter to python3

    sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 1
    

    Then remove existing virtualenv and reinstall via pip and python3:

    rm ~/.local/bin/virtualenv 
    apt remove python3-virtualenv
    sudo pip install virtualenv
    

提交回复
热议问题