作者:我爱左_470 | 来源:互联网 | 2023-09-02 16:01
PipinstallationPip isapackagemanagementsystemusedtoinstallandmanagesoftwarepackageswritten
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