1

I'm running OSX 10.8.5 with python 2.7.10. When I run the following pip install pyodbc I get the following error message.

Error Message:

Command "/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c "import setuptools, tokenize;__file__='/private/var/folders/vy/13xnp2r52ls80mzhmcns__bm0000gp/T/pip-build-OUZxeg/pyodbc/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/vy/13xnp2r52ls80mzhmcns__bm0000gp/T/pip-BhOEZo-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/vy/13xnp2r52ls80mzhmcns__bm0000gp/T/pip-build-OUZxeg/pyodbc

Xcode 5.1 is installed and pip list shows:

argh (0.26.1) 
html5lib (0.999999) 
pathtools (0.1.2) 
pip (7.1.0) 
PyYAML (3.11) 
setuptools (15.2) 
simplejson (3.8.0) 
six (1.9.0) 
wheel (0.24.0)

I'm pretty new to OS X so any help is welcome.

  • Have you installed Xcode ? – Mark Aug 11 '15 at 20:39
  • Could you also include the output of pip list? – theoden Aug 12 '15 at 1:55
  • @Mark Xcode is installed 5.1 – user3049698 Aug 12 '15 at 17:12
  • 1
    @theoden argh (0.26.1) html5lib (0.999999) pathtools (0.1.2) pip (7.1.0) PyYAML (3.11) setuptools (15.2) simplejson (3.8.0) six (1.9.0) wheel (0.24.0) – user3049698 Aug 12 '15 at 17:12
  • I'm voting to close this question as off-topic because given the answer this question will not help anyone else – Mark Aug 24 '15 at 10:45
1

Problem sovled

This issue was caused because I had imported a time machine back which was made using snow lepoard. Doing this had overwrote the mountain lion libraries.

I just had to reinstall mountain lion over the existing install and then xcode and homebrew and it worked fine.

  • I also get messed up between the "system python" and "homebrew python" - pip vs easy_install. Good thing you sorted it out +1 – bmike Aug 24 '15 at 14:53
  • 1
    @bmike pip and way_install can be used with both system and home-brew and other pythons - they all need to have the correct python in the #! header – Mark Aug 24 '15 at 15:01
  • 1
    @Mark I know and I keep forgetting the paths so my pythons need some professional wrangling from time to time. i.stack.imgur.com/0tfqZ.jpg – bmike Aug 24 '15 at 15:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .