在谈到这一点时,我是一个超级新手,所以请放轻松。我最近在安装cygwin时尝试让python正常运行时运行了一个推荐。我跑的命令是:
echo "PATH=\$PATH:/cygdrive/c/Python36" >> .bash_profile
之后我也运行了这个命令:
PATH=\$PATH:/usr/bin/home
现在每次启动Cygwin时,我都会在顶部弹出以下信息:
-bash: /home/Chris/.bash_profile: line 45: syntax error near unexpected token `'
-bash: /home/Chris/.bash_profile: line 45: `=PATH=//usr/local/bin:/usr/bin:/cygrive/c/Program Files (x86)/Intel/iCLS Client:/cygdrive/c/Program Files/Intel/iCS Client:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/Sstem32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Proram Files (x86)/NVIDIA Corporation/PhysX/Common:/cygdrive/c/Program Files (x86)Intel/Intel(R) Management Engine Components/DAL:/cygdrive/c/Program Files/IntelIntel(R) Management Engine Components/DAL:/cygdrive/c/Program Files (x86)/IntelIntel(R) Management Engine Components/IPT:/cygdrive/c/Program Files/Intel/IntelR) Management Engine Components/IPT:/cygdrive/c/Program Files/Intel/WiFi/bin:/cgdrive/c/Program Files/Common Files/Intel/WirelessCommon:/cygdrive/c/Users/Chri/AppData/Local/Microsoft/WindowsApps:/cygdrive/c/Users/Chris/AppData/Local/atombin:/cugdrive/c/Python36'
我明显搞砸了,任何帮助都会很棒。
答案 0 :(得分:1)
你的bash_profile应该包含这个:
export PATH=$PATH:/usr/bin/home
注意\ \已删除。您可以将其他路径追加到上面的行。