#51695: could not use setup.py to install pyraf using the macports installation of python 2.7 -------------------------------+-------------------------------- Reporter: mahajan.smriti@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: | -------------------------------+-------------------------------- Comment (by mahajan.smriti@…): OK, Point taken regarding getting confused between both the methods. But the question is: 1. How do I resolve the gcc error which I am getting when using 'pip install pyraf'. OR 2. In the meantime I have also tried to download the source code, and tried installing by the second method using setup.py, but now I get the following error when using 'python setup.py install' (as per the instructions on the Pyraf installation page. **/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ \\ site-packages/setuptools/dist.py:285: UserWarning: Normalizing '0.2.13.dev' to '0.2.13.dev0' \\ normalized_version,** ** running install** ''' error: can't create or remove files in install directory ** The following error occurred while trying to add or remove files in the installation directory:** **[Errno 13] Permission denied: '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/ \\ lib/python2.7/site-packages/test-easy-install-690.write-test'** **The installation directory you specified (via --install-dir, --prefix, or the distutils default setting) was: ** ** /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/ ** **Perhaps your account does not have write access to this directory? If the installation directory is a system-owned directory, you may need to sign in as the administrator or "root" account. If you do not have administrative access to this machine, you may wish to choose a different installation directory, preferably one that is listed in your PYTHONPATH environment variable.** **For information on other options, you may wish to consult the documentation at:** ** https://pythonhosted.org/setuptools/easy_install.html Please make the appropriate changes for your system and try again.** ''So it still seems to me like there is an issue with the Macports installed Python!?'' -- Ticket URL: <https://trac.macports.org/ticket/51695#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X