1

I installed EPD Free 7.3.2 and it was running fine until I wanted to modify PATH to point to where my Python scripts are. I gave up on that and reverted back to my original .bash_profile file.

# 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

When launching terminal, I get this:

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

However, I am able to run iPython and all the libs that come with EPD w/o problems. Anybody knows what the problem is with "PATH: command not found"?

mgilson
  • 300,191
  • 65
  • 633
  • 696
Luis Miguel
  • 5,057
  • 8
  • 42
  • 75

2 Answers2

8

The spaces around the = are a problem. Use this assignment:

PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}"
Mattie
  • 20,280
  • 7
  • 36
  • 54
Mithrandir
  • 24,869
  • 6
  • 50
  • 66
4

You need to remove the spaces around =:

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

Otherwise you're trying to run the (non-existent) command PATH with = and "/Library..." as its arguments.

NPE
  • 486,780
  • 108
  • 951
  • 1,012