#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@…): I have Xcode version 5.1.1 installed. Also which gcc returns /usr/bin/gcc. I am sure I am using the Macports python, because I have explicitly set the path to it in the .profile file using alias python='/opt/local/bin/python2.7'. I have to admit though that I do have other installations of Python 2.7 on my laptop, which perhaps came in bundled with other packages I installed earlier, but I do not know how to get rid of them to clean up the system. I tried using CC=clang python setup.py pip install pyraf but that returns /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/ \\ Python.app/Contents/MacOS/Python:\\ can't open file 'setup.py': [Errno 2] No such file or directory Not sure though why it is searching for setup.py in the /Frameworks/.. directory tree, when I have specified which Python I want to use. -- Ticket URL: <https://trac.macports.org/ticket/51695#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X