[英]I can't install packages for Python with Homebrew
I use this statement '$ brew install python' to install Python, and then I type this statement '$ pip install virtualenvwrapper'. 我使用以下语句“ $ brew install python”来安装Python,然后键入此语句“ $ pip install virtualenvwrapper”。 It shows: 表明:
-bash: /usr/local/bin/pip: /usr/local/opt/python/bin/python2.7: bad interpreter: No such file or directory
I don't know why. 我不知道为什么 And I type this statement again '$ brew install python', it shows: 然后我再次输入以下语句“ $ brew install python”,它显示:
Warning: python-2.7.10_2 already installed, it's just not linked
Why Python is not linked? 为什么不链接Python? Does this problem cause the virtualenvwrapper can't be installed? 此问题是否导致无法安装virtualenvwrapper? I have uninstalled Python many times. 我已经多次卸载了Python。 But I still cannot install packages for Python. 但是我仍然无法为Python安装软件包。
Here is my computer information. 这是我的计算机信息。 Mac OS X Yosemite Version 10.10.5, and the Python version I installed through homebrew is 2.7.10. Mac OS X Yosemite版本10.10.5,以及我通过自制软件安装的Python版本是2.7.10。
Thanks in advance! 提前致谢!
尝试再次安装(覆盖当前安装)python
brew link --overwrite python
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.