如果我在macbook的终端上输入echo $PATH
,这就是输出:
/Users/lkloh/Library/Enthought/Canopy_64bit/User/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Users/lkloh/.rvm/gems/ruby-1.9.3-p448@rails3tutorial2ndEd/bin:/Users/lkloh/.rvm/gems/ruby-1.9.3-p448@global/bin:/Users/lkloh/.rvm/rubies/ruby-1.9.3-p448/bin:/Users/lkloh/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/Users/lkloh/Library/Python/2.7/lib/python/site-packages/pysmo-aimbat-0.1.2/scripts:/usr/local/git/bin:/usr/texbin:/opt/sm/bin:/opt/sm/pkg/active/bin:/opt/sm/pkg/active/sbin
但是,如果我vi .bash_profile
,这就是我得到的,我无法删除路径中看到的额外链接。
# Added by Canopy installer on 2014-05-04
# VIRTUAL_ENV_DISABLE_PROMPT can be set to '' to make bashprompt show that Canopy is active, otherwise 1
VIRTUAL_ENV_DISABLE_PROMPT=1 source /Users/lkloh/Library/Enthought/Canopy_64bit/User/bin/activate
我做了vi .profile
,但它不存在。我也做.bash_rc
,但它不存在。如何使用我在$ PATH变量中看到的sym链接找到该文件?我想删除其中一些。
答案 0 :(得分:0)
OS OS桌面级别的环境变量的Mac OS X设置非常模糊。 " Mac OS X"中有几个有用的链接。本文的一部分:https://support.enthought.com/entries/23665767-How-do-I-set-PYTHONPATH-and-other-environment-variables-for-Canopy-