所以使用我输入的终端:nano .bash_profile然后我可以访问以下bash_profile:
GNU nano 2.0.6文件:.bash_profile
# Setting PATH for Python 2.7
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
export PATH
# Setting PATH for Python 3.5
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.5/bin:${PATH}"
export PATH
# Added by Canopy installer on 2015-09-29
# 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/psa1/Library/Enthought/Canopy_64bit/User/bin/activate'
# Setting PATH for Python 3.6
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.6/bin:${PATH}"
export PATH
我想完全删除bash配置文件中的Canopy行,因为它会搞乱pip或twilio下载。但我不知道该怎么做!
2
那是你真正的 .bash_profile吗?它似乎缺少哈希标记(#)来评论诸如“设置路径”或“由Canopy添加”之类的行。也就是说,Ctrl-K是nano中用来删除的东西。
—
Allan
这是复制粘贴,如果我添加哈希它只是把它放在粗体这就是我把它们拿出来的原因
—
PrincedeLuynes
使用ctrl-K只删除一次,但如果你重新启动终端,bash_profile仍然是相同的@Allan
—
PrincedeLuynes
我假设你要保存它,对吗?
—
Allan
是的肯定ctrl-X然后重新启动终端
—
PrincedeLuynes