This is most likely a path issue. When you start emacs from a terminal, your environment variable PATHsupposedly includes the Maccorts bin directory /opt/local/bin, because you supposedly changed one of your shell profiles, perhaps .bash_profileto include that directory in PATH.
( ), , /opt/local/bin PATH. , Pymacs . python, , , Apple python2.6 (python /usr/bin/env python). , python, , /opt/local/bin/python2.6.
, , plist Carbon Emacs.app, LSEnvironment PATH. PATH ~/.MacOSX/environment.plist. .
Pymacs Apple Python 2.6.1.
, , , easy_install. python MacPorts, , easy_install, Apple /usr/bin:
$ sudo port install py26-setuptools
$ /opt/local/bin/easy_install-2.6 <package>