Mac OS virtualenv-based installation TensorFlow

Source: Internet
Author: User
Tags virtualenv

We recommend that you use Virtualenv to create an isolated container to install TensorFlow. This is optional, but doing so can make it easier to troubleshoot installation problems. First, install all the prerequisites:#on Linux:$ sudo apt-get install Python-pip python-dev python-virtualenv#on the MAC:$ sudo easy_install pip#If you have not yet installed Pip$ sudo pip install--upgrade virtualenv Next, build a new virtualenv environment. To build the environment in~/TensorFlow Directory, execute: $ virtualenv--system-site-packages ~/tensorflow$ CD~/TensorFlow Then, activate virtualenv:$ source bin/activate#If you use bash$ source Bin/activate.csh#If you use CSH(TensorFlow) $#The terminal prompt should change ifYou are installing TensorFlow forMac OS X, Python 2.7, the command to install TensorFlowinchThe active virtualenv isAs follows: $ pip Install--Upgrade https:storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.3.0-py2-none-ANY.WHL Then, start Python,ImportTensorFlow as TF error Importerror:no module named Google.protobuf, Workaround: sudo pip install protobufok!

Mac OS virtualenv-based installation TensorFlow

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.