Ubuntu16.04上安裝Anaconda

有的平台因為尾大不掉等原因,無法遷移到容器化的開發環境上來,這個時候,為了管理不同版本的Python開發環境,Anaconda就是一個很好的選擇了。

1, 從官方下載Anaconda安裝包

gemfield@4ad01dc497fc:~# wget https://repo.continuum.io/archive/Anaconda3-4.2.0-Linux-x86_64.sh

2, 安裝

從下面的安裝過程你會看到Gemfield將anaconda安裝到了/opt/tool/anaconda3目錄下。

gemfield@93ba5fdc26a1:~# bash Anaconda3-4.2.0-Linux-x86_64.shWelcome to Anaconda3 4.2.0 (by Continuum Analytics, Inc.)In order to continue the installation process, please review the licenseagreement.Please, press ENTER to continue>>> ================Anaconda License================Copyright 2016, Continuum Analytics, Inc.All rights reserved under the 3-clause BSD License:Redistribution and use in source and binary forms, with or withoutmodification, are permitted provided that the following conditions are met:* Redistributions of source code must retain the above copyright notice,this list of conditions and the following disclaimer.* Redistributions in binary form must reproduce the above copyright notice,this list of conditions and the following disclaimer in the documentationand/or other materials provided with the distribution.* Neither the name of Continuum Analytics, Inc. nor the names of itscontributors may be used to endorse or promote products derived from thissoftware without specific prior written permission.THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THEIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEARE DISCLAIMED. IN NO EVENT SHALL CONTINUUM ANALYTICS, INC. BE LIABLE FORANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIALDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ORSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVERCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICTLIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAYOUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCHDAMAGE.Notice of Third Party Software Licenses=======================================Anaconda contains open source software packages from third parties. Theseare available on an "as is" basis and subject to their individual licenseagreements. These licenses are available in Anaconda or athttp://docs.continuum.io/anaconda/pkg-docs . Any binary packages of thesethird party tools you obtain via Anaconda are subject to their individuallicenses as well as the Anaconda license. Continuum reserves the right tochange which third party tools are provided in Anaconda.In particular, Anaconda contains re-distributable, run-time, shared-libraryfiles from the Intel (TM) Math Kernel Library ("MKL binaries"). You arespecifically authorized to use the MKL binaries with your installation ofAnaconda. You are also authorized to redistribute the MKL binaries withAnaconda or in the conda package that contains them. If needed,instructions for removing the MKL binaries after installation of Anacondaare available at http://www.continuum.io.Cryptography Notice===================This distribution includes cryptographic software. The country in which youcurrently reside may have restrictions on the import, possession, use,and/or re-export to another country, of encryption software. BEFORE usingany encryption software, please check your countrys laws, regulations andpolicies concerning the import, possession, or use, and re-export ofencryption software, to see if this is permitted. See the WassenaarArrangement <http://www.wassenaar.org/> for more information.Continuum Analytics has self-classified this software as Export CommodityControl Number (ECCN) 5D002.C.1, which includes information securitysoftware using or performing cryptographic functions with asymmetricalgorithms. The form and manner of this distribution makes it eligible forexport under the License Exception ENC Technology Software Unrestricted(TSU) exception (see the BIS Export Administration Regulations, Section740.13) for both object code and source code.The following packages are included in this distribution that relate tocryptography:opensslThe OpenSSL Project is a collaborative effort to develop a robust,commercial-grade, full-featured, and Open Source toolkit implementing theTransport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols aswell as a full-strength general purpose cryptography library.pycryptoA collection of both secure hash functions (such as SHA256 and RIPEMD160),and various encryption algorithms (AES, DES, RSA, ElGamal, etc.).pyopensslA thin Python wrapper around (a subset of) the OpenSSL library.kerberos (krb5, non-Windows platforms)A network authentication protocol designed to provide strong authenticationfor client/server applications by using secret-key cryptography.cryptographyA Python library which exposes cryptographic recipes and primitives.Do you approve the license terms? [yes|no]>>> yesAnaconda3 will now be installed into this location:/root/anaconda3 - Press ENTER to confirm the location - Press CTRL-C to abort the installation - Or specify a different location below[/root/anaconda3] >>> /opt/tool/anaconda3PREFIX=/opt/tool/anaconda3installing: python-3.5.2-0 ...installing: _license-1.1-py35_1 ...installing: _nb_ext_conf-0.3.0-py35_0 ...installing: alabaster-0.7.9-py35_0 ...installing: anaconda-clean-1.0.0-py35_0 ...installing: anaconda-client-1.5.1-py35_0 ...installing: anaconda-navigator-1.3.1-py35_0 ...installing: argcomplete-1.0.0-py35_1 ...installing: astroid-1.4.7-py35_0 ...installing: astropy-1.2.1-np111py35_0 ...installing: babel-2.3.4-py35_0 ...installing: backports-1.0-py35_0 ...installing: beautifulsoup4-4.5.1-py35_0 ...installing: bitarray-0.8.1-py35_0 ...installing: blaze-0.10.1-py35_0 ...installing: bokeh-0.12.2-py35_0 ...installing: boto-2.42.0-py35_0 ...installing: bottleneck-1.1.0-np111py35_0 ...installing: cairo-1.12.18-6 ...installing: cffi-1.7.0-py35_0 ...installing: chest-0.2.3-py35_0 ...installing: click-6.6-py35_0 ...installing: cloudpickle-0.2.1-py35_0 ...installing: clyent-1.2.2-py35_0 ...installing: colorama-0.3.7-py35_0 ...installing: configobj-5.0.6-py35_0 ...installing: contextlib2-0.5.3-py35_0 ...installing: cryptography-1.5-py35_0 ...installing: curl-7.49.0-1 ...installing: cycler-0.10.0-py35_0 ...installing: cython-0.24.1-py35_0 ...installing: cytoolz-0.8.0-py35_0 ...installing: dask-0.11.0-py35_0 ...installing: datashape-0.5.2-py35_0 ...installing: dbus-1.10.10-0 ...installing: decorator-4.0.10-py35_0 ...installing: dill-0.2.5-py35_0 ...installing: docutils-0.12-py35_2 ...installing: dynd-python-0.7.2-py35_0 ...installing: entrypoints-0.2.2-py35_0 ...installing: et_xmlfile-1.0.1-py35_0 ...installing: expat-2.1.0-0 ...installing: fastcache-1.0.2-py35_1 ...installing: filelock-2.0.6-py35_0 ...installing: flask-0.11.1-py35_0 ...installing: flask-cors-2.1.2-py35_0 ...installing: fontconfig-2.11.1-6 ...installing: freetype-2.5.5-1 ...installing: get_terminal_size-1.0.0-py35_0 ...installing: gevent-1.1.2-py35_0 ...installing: glib-2.43.0-1 ...installing: greenlet-0.4.10-py35_0 ...installing: gst-plugins-base-1.8.0-0 ...installing: gstreamer-1.8.0-0 ...installing: h5py-2.6.0-np111py35_2 ...installing: harfbuzz-0.9.39-1 ...installing: hdf5-1.8.17-1 ...installing: heapdict-1.0.0-py35_1 ...installing: icu-54.1-0 ...installing: idna-2.1-py35_0 ...installing: imagesize-0.7.1-py35_0 ...installing: ipykernel-4.5.0-py35_0 ...installing: ipython-5.1.0-py35_0 ...installing: ipython_genutils-0.1.0-py35_0 ...installing: ipywidgets-5.2.2-py35_0 ...installing: itsdangerous-0.24-py35_0 ...installing: jbig-2.1-0 ...installing: jdcal-1.2-py35_1 ...installing: jedi-0.9.0-py35_1 ...installing: jinja2-2.8-py35_1 ...installing: jpeg-8d-2 ...installing: jsonschema-2.5.1-py35_0 ...installing: jupyter-1.0.0-py35_3 ...installing: jupyter_client-4.4.0-py35_0 ...installing: jupyter_console-5.0.0-py35_0 ...installing: jupyter_core-4.2.0-py35_0 ...installing: lazy-object-proxy-1.2.1-py35_0 ...installing: libdynd-0.7.2-0 ...installing: libffi-3.2.1-0 ...installing: libgcc-4.8.5-2 ...installing: libgfortran-3.0.0-1 ...installing: libpng-1.6.22-0 ...installing: libsodium-1.0.10-0 ...installing: libtiff-4.0.6-2 ...installing: libxcb-1.12-0 ...installing: libxml2-2.9.2-0 ...installing: libxslt-1.1.28-0 ...installing: llvmlite-0.13.0-py35_0 ...installing: locket-0.2.0-py35_1 ...installing: lxml-3.6.4-py35_0 ...installing: markupsafe-0.23-py35_2 ...installing: matplotlib-1.5.3-np111py35_0 ...installing: mistune-0.7.3-py35_0 ...installing: mkl-11.3.3-0 ...installing: mkl-service-1.1.2-py35_2 ...installing: mpmath-0.19-py35_1 ...installing: multipledispatch-0.4.8-py35_0 ...installing: nb_anacondacloud-1.2.0-py35_0 ...installing: nb_conda-2.0.0-py35_0 ...installing: nb_conda_kernels-2.0.0-py35_0 ...installing: nbconvert-4.2.0-py35_0 ...installing: nbformat-4.1.0-py35_0 ...installing: nbpresent-3.0.2-py35_0 ...installing: networkx-1.11-py35_0 ...installing: nltk-3.2.1-py35_0 ...installing: nose-1.3.7-py35_1 ...installing: notebook-4.2.3-py35_0 ...installing: numba-0.28.1-np111py35_0 ...installing: numexpr-2.6.1-np111py35_0 ...installing: numpy-1.11.1-py35_0 ...installing: odo-0.5.0-py35_1 ...installing: openpyxl-2.3.2-py35_0 ...installing: openssl-1.0.2j-0 ...installing: pandas-0.18.1-np111py35_0 ...installing: partd-0.3.6-py35_0 ...installing: patchelf-0.9-0 ...installing: path.py-8.2.1-py35_0 ...installing: pathlib2-2.1.0-py35_0 ...installing: patsy-0.4.1-py35_0 ...installing: pep8-1.7.0-py35_0 ...installing: pexpect-4.0.1-py35_0 ...installing: pickleshare-0.7.4-py35_0 ...installing: pillow-3.3.1-py35_0 ...installing: pip-8.1.2-py35_0 ...installing: pixman-0.32.6-0 ...installing: pkginfo-1.3.2-py35_0 ...installing: ply-3.9-py35_0 ...installing: prompt_toolkit-1.0.3-py35_0 ...installing: psutil-4.3.1-py35_0 ...installing: ptyprocess-0.5.1-py35_0 ...installing: py-1.4.31-py35_0 ...installing: pyasn1-0.1.9-py35_0 ...installing: pycosat-0.6.1-py35_1 ...installing: pycparser-2.14-py35_1 ...installing: pycrypto-2.6.1-py35_4 ...installing: pycurl-7.43.0-py35_0 ...installing: pyflakes-1.3.0-py35_0 ...installing: pygments-2.1.3-py35_0 ...installing: pylint-1.5.4-py35_1 ...installing: pyopenssl-16.0.0-py35_0 ...installing: pyparsing-2.1.4-py35_0 ...installing: pyqt-5.6.0-py35_0 ...installing: pytables-3.2.3.1-np111py35_0 ...installing: pytest-2.9.2-py35_0 ...installing: python-dateutil-2.5.3-py35_0 ...installing: pytz-2016.6.1-py35_0 ...installing: pyyaml-3.12-py35_0 ...installing: pyzmq-15.4.0-py35_0 ...installing: qt-5.6.0-0 ...installing: qtawesome-0.3.3-py35_0 ...installing: qtconsole-4.2.1-py35_1 ...installing: qtpy-1.1.2-py35_0 ...installing: readline-6.2-2 ...installing: redis-3.2.0-0 ...installing: redis-py-2.10.5-py35_0 ...installing: requests-2.11.1-py35_0 ...installing: rope-0.9.4-py35_1 ...installing: scikit-image-0.12.3-np111py35_1 ...installing: scikit-learn-0.17.1-np111py35_2 ...installing: scipy-0.18.1-np111py35_0 ...installing: setuptools-27.2.0-py35_0 ...installing: simplegeneric-0.8.1-py35_1 ...installing: singledispatch-3.4.0.3-py35_0 ...installing: sip-4.18-py35_0 ...installing: six-1.10.0-py35_0 ...installing: snowballstemmer-1.2.1-py35_0 ...installing: sockjs-tornado-1.0.3-py35_0 ...installing: sphinx-1.4.6-py35_0 ...installing: spyder-3.0.0-py35_0 ...installing: sqlalchemy-1.0.13-py35_0 ...installing: sqlite-3.13.0-0 ...installing: statsmodels-0.6.1-np111py35_1 ...installing: sympy-1.0-py35_0 ...installing: terminado-0.6-py35_0 ...installing: tk-8.5.18-0 ...installing: toolz-0.8.0-py35_0 ...installing: tornado-4.4.1-py35_0 ...installing: traitlets-4.3.0-py35_0 ...installing: unicodecsv-0.14.1-py35_0 ...installing: wcwidth-0.1.7-py35_0 ...installing: werkzeug-0.11.11-py35_0 ...installing: wheel-0.29.0-py35_0 ...installing: widgetsnbextension-1.2.6-py35_0 ...installing: wrapt-1.10.6-py35_0 ...installing: xlrd-1.0.0-py35_0 ...installing: xlsxwriter-0.9.3-py35_0 ...installing: xlwt-1.1.2-py35_0 ...installing: xz-5.2.2-0 ...installing: yaml-0.1.6-0 ...installing: zeromq-4.1.4-0 ...installing: zlib-1.2.8-3 ...installing: anaconda-4.2.0-np111py35_0 ...installing: ruamel_yaml-0.11.14-py35_0 ...installing: conda-4.2.9-py35_0 ...installing: conda-build-2.0.2-py35_0 ...Python 3.5.2 :: Continuum Analytics, Inc.creating default environment...installation finished.Do you wish the installer to prepend the Anaconda3 install locationto PATH in your /root/.bashrc ? [yes|no][no] >>> noYou may wish to edit your .bashrc or prepend the Anaconda3 install location:$ export PATH=/opt/tool/anaconda3/bin:$PATHThank you for installing Anaconda3!Share your notebooks and packages on Anaconda Cloud!Sign up for free: https://anaconda.org

3,檢查安裝是否成功

gemfield@93ba5fdc26a1:~# /opt/tool/anaconda3/bin/pythonPython 3.5.2 |Anaconda 4.2.0 (64-bit)| (default, Jul 2 2016, 17:53:06) [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linuxType "help", "copyright", "credits" or "license" for more information.>>>gemfield@93ba5fdc26a1:~# /opt/tool/anaconda3/bin/conda list# packages in environment at /opt/tool/anaconda3:#_license 1.1 py35_1 _nb_ext_conf 0.3.0 py35_0 alabaster 0.7.9 py35_0 anaconda 4.2.0 np111py35_0 anaconda-clean 1.0.0 py35_0 anaconda-client 1.5.1 py35_0 anaconda-navigator 1.3.1 py35_0 argcomplete 1.0.0 py35_1 astroid 1.4.7 py35_0 astropy 1.2.1 np111py35_0 babel 2.3.4 py35_0 backports 1.0 py35_0 beautifulsoup4 4.5.1 py35_0 bitarray 0.8.1 py35_0 blaze 0.10.1 py35_0 bokeh 0.12.2 py35_0 boto 2.42.0 py35_0 bottleneck 1.1.0 np111py35_0 cairo 1.12.18 6 cffi 1.7.0 py35_0 chest 0.2.3 py35_0 click 6.6 py35_0 cloudpickle 0.2.1 py35_0 clyent 1.2.2 py35_0 colorama 0.3.7 py35_0 conda 4.2.9 py35_0 conda-build 2.0.2 py35_0 configobj 5.0.6 py35_0 contextlib2 0.5.3 py35_0 cryptography 1.5 py35_0 curl 7.49.0 1 cycler 0.10.0 py35_0 cython 0.24.1 py35_0 cytoolz 0.8.0 py35_0 dask 0.11.0 py35_0 datashape 0.5.2 py35_0 dbus 1.10.10 0 decorator 4.0.10 py35_0 dill 0.2.5 py35_0 docutils 0.12 py35_2 dynd-python 0.7.2 py35_0 entrypoints 0.2.2 py35_0 et_xmlfile 1.0.1 py35_0 expat 2.1.0 0 fastcache 1.0.2 py35_1 filelock 2.0.6 py35_0 flask 0.11.1 py35_0 flask-cors 2.1.2 py35_0 fontconfig 2.11.1 6 freetype 2.5.5 1 get_terminal_size 1.0.0 py35_0 gevent 1.1.2 py35_0 glib 2.43.0 1 greenlet 0.4.10 py35_0 gst-plugins-base 1.8.0 0 gstreamer 1.8.0 0 h5py 2.6.0 np111py35_2 harfbuzz 0.9.39 1 hdf5 1.8.17 1 heapdict 1.0.0 py35_1 icu 54.1 0 idna 2.1 py35_0 imagesize 0.7.1 py35_0 ipykernel 4.5.0 py35_0 ipython 5.1.0 py35_0 ipython_genutils 0.1.0 py35_0 ipywidgets 5.2.2 py35_0 itsdangerous 0.24 py35_0 jbig 2.1 0 jdcal 1.2 py35_1 jedi 0.9.0 py35_1 jinja2 2.8 py35_1 jpeg 8d 2 jsonschema 2.5.1 py35_0 jupyter 1.0.0 py35_3 jupyter_client 4.4.0 py35_0 jupyter_console 5.0.0 py35_0 jupyter_core 4.2.0 py35_0 lazy-object-proxy 1.2.1 py35_0 libdynd 0.7.2 0 libffi 3.2.1 0 libgcc 4.8.5 2 libgfortran 3.0.0 1 libpng 1.6.22 0 libsodium 1.0.10 0 libtiff 4.0.6 2 libxcb 1.12 0 libxml2 2.9.2 0 libxslt 1.1.28 0 llvmlite 0.13.0 py35_0 locket 0.2.0 py35_1 lxml 3.6.4 py35_0 markupsafe 0.23 py35_2 matplotlib 1.5.3 np111py35_0 mistune 0.7.3 py35_0 mkl 11.3.3 0 mkl-service 1.1.2 py35_2 mpmath 0.19 py35_1 multipledispatch 0.4.8 py35_0 nb_anacondacloud 1.2.0 py35_0 nb_conda 2.0.0 py35_0 nb_conda_kernels 2.0.0 py35_0 nbconvert 4.2.0 py35_0 nbformat 4.1.0 py35_0 nbpresent 3.0.2 py35_0 networkx 1.11 py35_0 nltk 3.2.1 py35_0 nose 1.3.7 py35_1 notebook 4.2.3 py35_0 numba 0.28.1 np111py35_0 numexpr 2.6.1 np111py35_0 numpy 1.11.1 py35_0 odo 0.5.0 py35_1 openpyxl 2.3.2 py35_0 openssl 1.0.2j 0 pandas 0.18.1 np111py35_0 partd 0.3.6 py35_0 patchelf 0.9 0 path.py 8.2.1 py35_0 pathlib2 2.1.0 py35_0 patsy 0.4.1 py35_0 pep8 1.7.0 py35_0 pexpect 4.0.1 py35_0 pickleshare 0.7.4 py35_0 pillow 3.3.1 py35_0 pip 8.1.2 py35_0 pixman 0.32.6 0 pkginfo 1.3.2 py35_0 ply 3.9 py35_0 prompt_toolkit 1.0.3 py35_0 psutil 4.3.1 py35_0 ptyprocess 0.5.1 py35_0 py 1.4.31 py35_0 pyasn1 0.1.9 py35_0 pycosat 0.6.1 py35_1 pycparser 2.14 py35_1 pycrypto 2.6.1 py35_4 pycurl 7.43.0 py35_0 pyflakes 1.3.0 py35_0 pygments 2.1.3 py35_0 pylint 1.5.4 py35_1 pyopenssl 16.0.0 py35_0 pyparsing 2.1.4 py35_0 pyqt 5.6.0 py35_0 pytables 3.2.3.1 np111py35_0 pytest 2.9.2 py35_0 python 3.5.2 0 python-dateutil 2.5.3 py35_0 pytz 2016.6.1 py35_0 pyyaml 3.12 py35_0 pyzmq 15.4.0 py35_0 qt 5.6.0 0 qtawesome 0.3.3 py35_0 qtconsole 4.2.1 py35_1 qtpy 1.1.2 py35_0 readline 6.2 2 redis 3.2.0 0 redis-py 2.10.5 py35_0 requests 2.11.1 py35_0 rope 0.9.4 py35_1 ruamel_yaml 0.11.14 py35_0 scikit-image 0.12.3 np111py35_1 scikit-learn 0.17.1 np111py35_2 scipy 0.18.1 np111py35_0 setuptools 27.2.0 py35_0 simplegeneric 0.8.1 py35_1 singledispatch 3.4.0.3 py35_0 sip 4.18 py35_0 six 1.10.0 py35_0 snowballstemmer 1.2.1 py35_0 sockjs-tornado 1.0.3 py35_0 sphinx 1.4.6 py35_0 spyder 3.0.0 py35_0 sqlalchemy 1.0.13 py35_0 sqlite 3.13.0 0 statsmodels 0.6.1 np111py35_1 sympy 1.0 py35_0 terminado 0.6 py35_0 tk 8.5.18 0 toolz 0.8.0 py35_0 tornado 4.4.1 py35_0 traitlets 4.3.0 py35_0 unicodecsv 0.14.1 py35_0 wcwidth 0.1.7 py35_0 werkzeug 0.11.11 py35_0 wheel 0.29.0 py35_0 widgetsnbextension 1.2.6 py35_0 wrapt 1.10.6 py35_0 xlrd 1.0.0 py35_0 xlsxwriter 0.9.3 py35_0 xlwt 1.1.2 py35_0 xz 5.2.2 0 yaml 0.1.6 0 zeromq 4.1.4 0 zlib 1.2.8 3 root@93ba5fdc26a1:~#

4,搜索tensorflow-gpu的版本

gemfield@93ba5fdc26a1:~# /opt/tool/anaconda3/bin/anaconda search -t conda tensorflow Using Anaconda API: https://api.anaconda.orgRun anaconda show <USER/PACKAGE> to get more details:Packages: Name | Version | Package Types | Platforms ------------------------- | ------ | --------------- | --------------- aaronzs/tensorflow-gpu | 1.4.0 | conda | linux-64, win-64 : TensorFlow helps the tensors flow anaconda/tensorflow-gpu | 1.3.0 | conda | linux-ppc64le, linux-64, win-64 : TensorFlow is a machine learning library. anaconda/tensorflow-gpu-base | 1.3.0 | conda | linux-64 : TensorFlow is a machine learning library, base GPU package, tensorflow only. jjh_cio_testing/tensorflow-gpu | 1.3.0 | conda | linux-64 : TensorFlow is a machine learning library. jjh_cio_testing/tensorflow-gpu-base | 1.3.0 | conda | linux-64 : TensorFlow is a machine learning library, base GPU package, tensorflow only. jjh_ppc64le/tensorflow-gpu | 1.2.1 | conda | linux-ppc64le : TensorFlow is a machine learning library jjhelmus/tensorflow-gpu | 1.0.1 | conda | linux-64 : TensorFlow is a machine learning library. jjhelmus/tensorflow-gpu-base | 1.3.0 | conda | linux-64 : TensorFlow is a machine learning library, base GPU package, tensorflow only. marta-sd/tensorflow-gpu | 1.2.0 | conda | linux-64 nehaljwani/tensorflow-gpu | 1.1.0 | conda | win-64 : TensorFlow is a machine learning libraryFound 10 packages

5,安裝tensorflow-gpu的1.4版本

你可以看到只有aaronzs這個用戶提供了1.4版本的tensorflow-gpu,而Anaconda官方還沒有。

gemfield@93ba5fdc26a1:~# /opt/tool/anaconda3/bin/conda install --channel https://conda.anaconda.org/aaronzs tensorflow-gpuda.anaconda.org/aaronzs tensorflow-gpua3/bin/conda install --channel https://con Fetching package metadata .........Solving package specifications: ..........Warning: 4 possible package resolutions (only showing differing packages): - aaronzs::protobuf-3.4.0-py35h1c7b5f9_0.tar.bz2 - aaronzs::protobuf-3.4.0-py35h41841da_0.tar.bz2 - aaronzs::protobuf-3.4.0-py35h2a4e1fd_0.tar.bz2 - aaronzs::protobuf-3.4.0-py35h84e7753_0.tar.bz2Package plan for installation in environment /opt/tool/anaconda3:The following packages will be downloaded: package | build ---------------------------|----------------- conda-env-2.6.0 | 0 502 B mkl-2017.0.3 | 0 129.5 MB markdown-2.6.9 | py35_0 100 KB numpy-1.13.1 | py35_0 7.2 MB requests-2.14.2 | py35_0 723 KB html5lib-0.9999999 | py35_0 183 KB numexpr-2.6.2 | np113py35_0 357 KB protobuf-3.4.0 | py35h1c7b5f9_0 6.1 MB aaronzs scipy-0.19.1 | np113py35_0 36.3 MB bleach-1.5.0 | py35_0 22 KB scikit-learn-0.19.0 | np113py35_0 11.7 MB pyopenssl-16.2.0 | py35_0 70 KB tensorflow-tensorboard-0.4.0rc3| py35h9958e77_0 1.6 MB aaronzs conda-4.3.30 | py35hf9359ed_0 516 KB tensorflow-gpu-1.4.0 | py35hc6fb95a_0 125.3 MB aaronzs ------------------------------------------------------------ Total: 319.7 MBThe following NEW packages will be INSTALLED: bleach: 1.5.0-py35_0 conda-env: 2.6.0-0 html5lib: 0.9999999-py35_0 markdown: 2.6.9-py35_0 protobuf: 3.4.0-py35h1c7b5f9_0 aaronzs tensorflow-gpu: 1.4.0-py35hc6fb95a_0 aaronzs tensorflow-tensorboard: 0.4.0rc3-py35h9958e77_0 aaronzsThe following packages will be UPDATED: conda: 4.2.9-py35_0 --> 4.3.30-py35hf9359ed_0 mkl: 11.3.3-0 --> 2017.0.3-0 numexpr: 2.6.1-np111py35_0 --> 2.6.2-np113py35_0 numpy: 1.11.1-py35_0 --> 1.13.1-py35_0 pyopenssl: 16.0.0-py35_0 --> 16.2.0-py35_0 requests: 2.11.1-py35_0 --> 2.14.2-py35_0 scikit-learn: 0.17.1-np111py35_2 --> 0.19.0-np113py35_0 scipy: 0.18.1-np111py35_0 --> 0.19.1-np113py35_0 Proceed ([y]/n)? yFetching packages ...conda-env-2.6. 100% || Time: 0:00:00 409.72 kB/ssmkl-2017.0.3-0 100% || Time: 0:03:23 668.41 kB/ssmarkdown-2.6.9 100% || Time: 0:00:00 203.58 kB/ssnumpy-1.13.1-p 100% || Time: 0:00:08 847.81 kB/ssrequests-2.14. 100% || Time: 0:00:01 716.87 kB/sshtml5lib-0.999 100% || Time: 0:00:00 298.88 kB/ssnumexpr-2.6.2- 100% || Time: 0:00:00 453.27 kB/ssprotobuf-3.4.0 100% || Time: 0:00:45 142.83 kB/ssscipy-0.19.1-n 100% || Time: 0:00:29 1.27 MB/ssbleach-1.5.0-p 100% || Time: 0:00:00 114.98 kB/ssscikit-learn-0 100% || Time: 0:00:09 1.25 MB/sspyopenssl-16.2 100% || Time: 0:00:00 176.23 kB/sstensorflow-ten 100% || Time: 0:00:03 437.60 kB/ssconda-4.3.30-p 100% || Time: 0:00:01 321.45 kB/sstensorflow-gpu 100% || Time: 0:02:23 916.08 kB/ssExtracting packages ...[ COMPLETE ]|| 100%0%Unlinking packages ...[ COMPLETE ]|| 100%Linking packages ...[ COMPLETE ]|| 100%0%

6,檢查tensorflow-gpu的1.4版本是否安裝成功

gemfield@93ba5fdc26a1:~# /opt/tool/anaconda3/bin/pythonPython 3.5.2 |Anaconda 4.2.0 (64-bit)| (default, Jul 2 2016, 17:53:06) [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linuxType "help", "copyright", "credits" or "license" for more information.>>> import tensorflow as tf>>> tf.__file__/opt/tool/anaconda3/lib/python3.5/site-packages/tensorflow/__init__.py>>> tf.__version__1.4.0>>>

(不定期更新)


推薦閱讀:

在看spark大數據分析的時候,輸入書中的範例代碼卻提示缺少參數,怎麼辦呢?
Anaconda使用總結
如何在Jupyter Notebook中使用Python虛擬環境?

TAG:Anaconda | Python | TensorFlow |