[英]Can't pip install virtualenv on Mac 10.9 Mavericks with brewed python
I am trying to setup virtualenv
to keep my python env
clean and organized. 我正在尝试设置virtualenv
来保持我的python env
整洁有序。 Well, actually I'm trying to install scrapy
as I wrote about here which opened this can of python worms that I'm now trying cleanup after will virtualenv
. 好吧,实际上,我正在尝试安装我在这里写的scrapy
,它打开了这罐python蠕虫,现在我将在virtualenv
之后尝试清理。
The final verdict was to install virtualenv
(which is failing) and hence this post. 最终裁决是安装virtualenv
(失败),因此发布了这篇文章。 This is where I'm at: 我在这里:
$ virtualenv test
-bash: virtualenv: command not found
I understand that this means wherever virtualenv
installed via pip install virtualenv
isn't in my path but it should be after following these: 我明白,这意味着无论virtualenv
通过安装pip install virtualenv
是不是在我的道路,但它应该是以下后:
Can't pip install virtualenv in OS X 10.8 with brewed python 2.7 无法使用酿造的python 2.7 pip在OS X 10.8中安装virtualenv
http://hackercodex.com/guide/python-development-environment-on-mac-osx/ http://hackercodex.com/guide/python-development-environment-on-mac-osx/
https://github.com/Homebrew/homebrew/issues/12667#issuecomment-6257342 https://github.com/Homebrew/homebrew/issues/12667#issuecomment-6257342
http://www.lowindata.com/2013/installing-scientific-python-on-mac-os-x/ http://www.lowindata.com/2013/installing-scientific-python-on-mac-os-x/
Delete all virtualenv and start from scratch 删除所有virtualenv并从头开始
brew doctor
returns ready to brew
. brew doctor
返回ready to brew
。
My guess is that my system python and my brew python aren't playing nicely but I'm out of ideas as to what else I can do to fix this. 我的猜测是我的系统python和brew python不能很好地玩,但是对于解决该问题我还有其他想法。
At this point I'm willing to do a clean install of just about everything (even mac os x) if that's what it takes. 在这一点上,我愿意对所有内容(甚至是Mac OS X)进行干净的安装(如果需要的话)。 I'm pretty sure I sudo pip install
'd something(s) a while ago and I'm paying the price for it now. 我很确定我前不久在sudo pip install
东西,现在我为此付出了代价。
More details of the install: 安装的更多详细信息:
~ ∮ pip install virtualenv
Requirement already satisfied (use --upgrade to upgrade): virtualenv in /usr/local/lib/python2.7/site-packages
Cleaning up...
~ ∮ pip install virtualenvwrapper
Requirement already satisfied (use --upgrade to upgrade): virtualenvwrapper in /usr/local/lib/python2.7/site-packages
Requirement already satisfied (use --upgrade to upgrade): virtualenv in /usr/local/lib/python2.7/site-packages (from virtualenvwrapper)
Requirement already satisfied (use --upgrade to upgrade): virtualenv-clone in /usr/local/lib/python2.7/site-packages (from virtualenvwrapper)
Requirement already satisfied (use --upgrade to upgrade): stevedore in /usr/local/lib/python2.7/site-packages (from virtualenvwrapper)
Cleaning up...
I tried both brew install python --with-brewed-openssl
AND brew install python --framework
(after uninstalling the previous when it wasn't working) (and all the other suggestions in the above links) 我尝试了brew install python --with-brewed-openssl
brew install python --framework
brew install python --with-brewed-openssl
和brew install python --framework
(在不工作的情况下卸载前一个)(以及以上链接中的所有其他建议)
thanks in advance! 提前致谢!
virtualenv
looks to be in the wrong place. virtualenv
似乎在错误的位置。 On Mac 10.9 it should be in /usr/local/bin/virtualenv
. 在Mac 10.9上,它应该位于/usr/local/bin/virtualenv
。
Try a pip uninstall
on virtualenv and then reinstall again with pip, see if it puts it in the right location. 尝试在virtualenv上进行pip uninstall
,然后再次使用pip重新安装,看看是否将其放置在正确的位置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.