1

我安装了 EPD Free 7.3.2,它运行良好,直到我想修改 PATH 以指向我的 Python 脚本所在的位置。我放弃了,恢复到原来的 .bash_profile 文件。

# Setting PATH for EPD_free-7.3-2
# The orginal version is saved in .bash_profile.pysave
PATH = "/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}"
export PATH

启动终端时,我得到这个:

Last login: Thu Jan  3 08:50:20 on ttys000
-bash: PATH: command not found

但是,我能够运行 iPython 和 EPD 附带的所有库,没有问题。任何人都知道“PATH:找不到命令”的问题是什么?

4

2 回答 2

8

周围的空间=是个问题。使用此作业:

PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}"
于 2013-01-03T14:04:36.863 回答
4

您需要删除周围的空格=

PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}"

否则,您将尝试PATH使用=and"/Library..."作为其参数运行(不存在的)命令。

于 2013-01-03T14:04:43.193 回答