[Installation] Using Tensorflow with Python 2.7 / 3.5


Pip installation

Pip is a package management system used to install and manage software packages written in Python. We provide pip packages for TensorFlow on Linux, Mac OS X, and Windows. For Windows instructions, please see Pip installation on Windows.

The packages that will be installed or upgraded during the pip install are listed in the REQUIRED_PACKAGES section of setup.py.

Install pip (or pip3 for python3) if it is not already installed:

# Ubuntu/Linux 64-bit
$ sudo apt-get install python-pip python-dev

# Mac OS X
$ sudo easy_install pip
$ sudo easy_install --upgrade six

We have also uploaded the binaries to Pypi, so you can simply install tensorflow on Linux, Mac or Windows with pip install. Note you will need pip version 8.1 or later for the following commands to work on Linux :

$ pip install tensorflow

For installing the version with GPU support, please use:

$ pip install tensorflow-gpu

Libraries

matplotlib

sudo pip install matplotlib
sudo pip3 install matplotlib

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM