无法使用酿造的Python在Mac 10.9 Mavericks上点子安装virtualenv [英] Can't pip install virtualenv on Mac 10.9 Mavericks with brewed python
问题描述
我正在尝试设置virtualenv
以保持我的python env
整洁有序.
好吧,实际上,正如我在此处打开了我现在要尝试清理的python蠕虫罐virtualenv
.
I am trying to setup virtualenv
to keep my python env
clean and organized.
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
.
最终结论是安装virtualenv
(失败),因此安装了此帖子.这是我的位置:
The final verdict was to install virtualenv
(which is failing) and hence this post. This is where I'm at:
$ virtualenv test
-bash: virtualenv: command not found
我了解这意味着通过pip install virtualenv
安装的virtualenv
不在我的路径中,但应该在执行以下操作之后:
I understand that this means wherever virtualenv
installed via pip install virtualenv
isn't in my path but it should be after following these:
-
http://hackercodex.com/guide/python-development-environment-on-mac-osx/
https://github.com/Homebrew/homebrew/issues/12667#issuecomment-6257342
http://www .lowindata.com/2013/installing-scientific-python-on-mac-os-x/
brew doctor
返回ready to brew
.我的猜测是我的系统python和brew python不能很好地运行,但是我对解决该问题还有其他想法.
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.
在这一点上,我愿意对所有内容(甚至是Mac OS X)进行干净的安装(如果需要的话).我很确定我前一段时间
sudo pip install
想要一些东西,现在我为此付出了代价.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. I'm pretty sure I
sudo pip install
'd something(s) a while ago and I'm paying the price for it now.更多安装细节:
~ ∮ 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...
我都尝试过
brew install python --with-brewed-openssl
和brew install python --framework
(在无法使用前一个版本后将其卸载)(以及以上链接中的所有其他建议)I tried both
brew install python --with-brewed-openssl
ANDbrew install python --framework
(after uninstalling the previous when it wasn't working) (and all the other suggestions in the above links)提前谢谢!
推荐答案
virtualenv
似乎在错误的位置.在Mac 10.9上,它应该位于/usr/local/bin/virtualenv
中.virtualenv
looks to be in the wrong place. On Mac 10.9 it should be in/usr/local/bin/virtualenv
.在virtualenv上尝试
pip uninstall
,然后再次使用pip重新安装,看看是否将其放置在正确的位置.Try a
pip uninstall
on virtualenv and then reinstall again with pip, see if it puts it in the right location.这篇关于无法使用酿造的Python在Mac 10.9 Mavericks上点子安装virtualenv的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!