cd python-package python setup.py install This should configure it cleanly and build the library. Save the file and now you need to run a cleaning step since you changed the Makefile. To the following: export CC = $(if $(shell which clang), clang, gcc-6)Įxport CXX = $(if $(shell which clang++), clang++, g++-6) TensorFlow with conda is supported on 64-bit Windows 7 or later, 64-bit Ubuntu Linux 14.
This page shows how to install TensorFlow with the conda package manager included in Anaconda and Miniconda. Save the file.Īlso, make changes to the file xgboost/Makefile change lines: export CC = $(if $(shell which clang), clang, gcc)Įxport CXX = $(if $(shell which clang++), clang++, g++) Anaconda makes it easy to install TensorFlow, enabling your data science, machine learning, and artificial intelligence workflows. It did not for me I needed to add the -6 to both lines. It is possible that simply uncommenting the lines solves the problem. If you want to file an issue report about conda’s speed, we ask that you take the time to isolate exactly what is slow, and what you think is a reasonable amount of time for that operation to take (preferably by comparison with another tool that is. Uncomment the lines near the top of the file:Ĭhange them to the following: export CC = gcc-6 They often don’t even say what conda is taking so long to do - just that it’s slow. Now, use your favorite editor (I used vi), and go into the file that you copied from /make to /xgboost vi config.mk The problem is that some key lines in the make files are commented out and also not fully specified. The next series of steps differ from the documentation on the xgboost site, and I cobbled it together from lots of sources and also experimenting. I downloaded it to Anaconda/pkgs directory. You might get some warnings to unlink directories or delete them if you have other versions installed follow the warnings/instructions. It took me a while to work through the various issues, but it is now running nicely in my Anaconda (P圓6) environment.įor multi-threading you need to do the following first (install homebrew if you have not done so): brew install gcc -without-multilib Now that we are building with CMake ( 28), maybe this is more approachable Created at 2 years ago.
For xgboost I had to patch the makefiles more. For the record, I am using a Mac with OS X 10.10 (Yosemite). You can use the conda gcc and libgcc packages. It's a little more complicated if you want to use multi-threading.