Pip安装结果错误“没有这样的选项:-E”

时间:2021-09-16 22:53:32

I just cleaned up my mac after a mavericks install (yeah, i'm late to the party). I'm using homebrew Python but I've confirmed this error with the stock apple python as well. I've got pip 1.5.6 installed system-wide and also in my virtualenv.

我刚刚在一个小牛队的安装后清理了我的mac(是的,我已经迟到了)。我使用的是homebrew Python,但我也已经用apple Python确认了这个错误。我在系统范围内安装了pip 1.5.6,在我的virtualenv中也有。

I can pip-sys install for system-wide pip installs no problem. When In a virtualenv though, I get the following error, even with which pip.

我可以在系统范围内安装pip系统。但在virtualenv中,即使使用了pip,也会出现以下错误。

pip install -U -r requirements/dev.pip

Usage:   
  pip <command> [options]

no such option: -E

1 个解决方案

#1


0  

Seems there is something wrong with the pip install within the virtualenv. Pip is not working but pip2 install works fine. So maybe there's a version conflict where pip installs thinking it's a different python version from what was installed.

似乎在virtualenv中安装pip是有问题的。Pip不工作,但是pip2安装工作正常。因此,可能有一个版本冲突,pip安装了一个不同的python版本。

To recap

回顾一下

pip install south

fails with above error

上面失败与错误

pip2 install south

works fine.

工作很好。

#1


0  

Seems there is something wrong with the pip install within the virtualenv. Pip is not working but pip2 install works fine. So maybe there's a version conflict where pip installs thinking it's a different python version from what was installed.

似乎在virtualenv中安装pip是有问题的。Pip不工作,但是pip2安装工作正常。因此,可能有一个版本冲突,pip安装了一个不同的python版本。

To recap

回顾一下

pip install south

fails with above error

上面失败与错误

pip2 install south

works fine.

工作很好。