[英]How to make zsh on a mac 10.9 use python 2.7.6 instead of Apple's preinstalled 2.7.5
How do I make zsh on a mac use python 2.7.6 which I have in my /usr/local/bin/python instead of python 2.7.5 which is in /usr/bin/python? 如何在Mac上使zsh使用/ usr / local / bin / python中的python 2.7.6而不是/ usr / bin / python中的python 2.7.5? (without needing to type /usr/local/bin/python before the script I want to run).
(无需在要运行的脚本之前键入/ usr / local / bin / python)。 My path setting on .zprofile is:
我在.zprofile上的路径设置是:
# Setting PATH for Python 2.7
# The orginal version is saved in .zprofile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
export PATH
Set: 组:
export PATH="/usr/local/bin:$PATH"
in your ~/.zshrc
file. 在您的
~/.zshrc
文件中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.