Advertisement
Guest User

Untitled

a guest
Apr 17th, 2014
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. sudo port install py27-scikit-learn
  2.  
  3. Error: The installed version of Xcode (2.0orlower) is too old to use on the installed OS version. Version 4.6.2 or later is recommended on Mac OS X 10.8.
  4. To report a bug, follow the instructions in the guide:
  5. http://guide.macports.org/#project.tickets
  6. Error: Processing of port py27-scikit-learn failed
  7.  
  8. xcode-select -print-path
  9.  
  10. /Applications/Xcode.app/Contents/Developer
  11.  
  12. # Pre-requsites:
  13. # X-code 5.0.1 with command line tools
  14. # Homebrew, homebrew python, homebrew pip
  15.  
  16. export CFLAGS="-arch i386 -arch x86_64"
  17. export FFLAGS="-m32 -m64"
  18. export LDFLAGS="-Wall -undefined dynamic_lookup -bundle -arch i386 -arch x86_64"
  19. export CC=gcc-4.2
  20. export CXX="g++ -arch i386 -arch x86_64"
  21. brew install gfortran
  22. brew install apple-gcc42
  23. pip install cython
  24.  
  25. #use existing brews
  26. brew tap samueljohn/python
  27. brew tap homebrew/science
  28. pip install nose
  29.  
  30. #installs numpy as a dependency
  31. brew install scipy
  32.  
  33. pip install scikit-learn
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement