Code Monkey home page Code Monkey logo

tensorflow-osx-build's Introduction

Tensorflow OSX Build

Unfortunately, the Tensorflow team stops releasing binary package for Mac OS with CUDA support since Tensorflow 1.2. This project provides off-the-shelf binary packages. Both Python 2.7 and 3.6 are supported now!

很不幸,Tensorflow团队自从1.2版本开始停止了发布 Mac OS CUDA版。本项目提供 Mac OS 上编译好、可直接安装的Tensorflow CUDA版本。本项目同时支持Python 2.7 和 3.6 了!

Releases

FileName Tensorflow CUDA CUDNN Compute Capability Compilation Time
tensorflow-1.6.0-cp36-cp36m-macosx_10_12_intel.whl 1.6.0 9.0 7 3.0,3.5,5.2,6.1 2018-04-23
tensorflow-1.6.0-cp27-cp27m-macosx_10_12_intel.whl 1.6.0 9.0 7 3.0,3.5,5.2,6.1 2018-04-23
tensorflow-1.4.0-cp27-cp27m-macosx_10_12_intel.whl 1.4.0 8.0 6 3.0,3.5,5.2,6.1 2017-11-29
tensorflow-1.4.0.dev0-cp27-cp27m-macosx_10_12_intel.whl 1.4.0.dev0 8.0 6 3.0,3.5,5.2,6.1 2017-09-15

You can find older releases in the releases page.

你可以在Releases页面找到以前发布的版本。

Installation for Python 2.7

First, ensure your CUDA driver and cudnn is installed properly, and copy dependencies in folder usr_local_lib to path /usr/local/lib.

首先,确保CUDA驱动和cudnn正确安装,并且将文件夹usr_local_lib中的依赖项复制到路径/usr/local/lib

sudo mkdir /usr/local
sudo mkdir /usr/local/lib
sudo cp usr_local_lib/* /usr/local/lib/

Second, uninstall the previous tensorflow installtion by

其次,卸载之前版本的Tensorflow:

pip uninstall tensorflow
pip uninstall tensorflow-gpu

At last, uncompress and install the binary package from this project:

最后,解压并安装:

cat tensorflow* > tensorflow.whl.zip
unzip tensorflow.whl.zip
pip install tensorflow*.whl

Installation for Python 3.6

Install Python 3.6 from Homebrew first, and then simply follow the guide for Python 2.7 and replace pip command with pip3 and python with python3.

首先从Homebrew安装Python 3.6,然后按照Python 2.7的安装步骤执行,注意将pip替换为pip3,并用python3启动python

Enjoy!

开始使用新版Tensorflow吧!

Source Code

Source code from: https://github.com/tensorflow/tensorflow

tensorflow-osx-build's People

Contributors

tomheaven avatar

Watchers

 avatar

Forkers

noiplcx

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.