Can't pip install virtualenv in OS X 10.8 with brewed python 2.7

前端 未结 5 764
隐瞒了意图╮
隐瞒了意图╮ 2020-12-09 06:00

When trying to install virtualenv using a brewed python, I get the following error:

$ pip install virtualenv
Requirement already satisfied (use --upgrade to          


        
5条回答
  •  时光说笑
    2020-12-09 06:57

    What really caused and issue for me was the presence of .pydistutils.cfg in my $HOME directory. That's what forced me to have to use: sudo pip install .

    If you ever have to use sudo to install a package via pip, you're doing it wrong and you need to start troubleshooting your system right away; else everything is going to fail and you won't know why.

    Running: brew doctor will warn you about the .pydistutils.cfg file, so don't forget to monitor the status of that command after making core changes to your system.

    It took me quite a while to track this down, but all is well now. This really helped

提交回复
热议问题