TensorFlow installation is divided into two cases, one is CPU only, and the other is the use of the GPU, which also installs Cuda and CUDNN, the situation is relatively complex. The above two categories recommend using Anaconda as the Python environment, and the basic version of Python is version 3.5. This article is to give the Conda environment configuration installation of
1. Download and install Anaconda1.1 downloadDownload the Linux version from Anaconda official website (https://www.continuum.io/downloads)https://repo.continuum.io/archive/(Recommended python3.5)1.2 InstallationCD ~/downloadssudo bash anaconda2-5.0.1-linux-x86_64.sh (download the corresponding version of Python2.7 here)Ask if you want to add the Anaconda bin to the user's environment variable and select yes
I. Recommended TWO websites
TensorFlow Official Document: Https://www.tensorflow.org/install/install_windows
TensorFlow Chinese Community: http://www.tensorfly.cn/tfdoc/get_started/os_setup.html
Two. install TensorFlow on WindowsDirectory:
Determine the TensorFlow to install
Requirements
philosophy--conda almost all the tools, third-party packages are treated as a package, even including Python and Conda itself! As a result, Conda has broken the constraints of package management and environmental management, making it easy to install versions of Python, various packages and easily switch between them.
But sometimes we still have to install the three-party package ourselves. For example, TensorFlow is used for deep learning packages.
, including more than 100 of the most popular python,r and Scala packages for data science.From Anaconda official download pageSee Anaconda Official tutorial for details, easy to understand!Anaconda Preliminary Study0. Download Anaconda installation package: Anaconda officia
(sess.run(hello))The result is the same. But we can see that our GPU device is working. You can see my GTX 1050 Ti in the test results below.TensorFlow GPU Verification InstallationWe successfully installed the TensorFlow on Ubuntu 18.04. You can test more models on the TensorFlow website, and the Git clone model library is very slow. Therefore, we can also use the "own method" in the browser to download th
Install TensorFlow in Python2.7 in Ubuntu 16.04
My system environment:
Ubuntu 16.04 LTS
Python 1, 2.7
Python 1, 3.5
Two TensorFlow versions:
TensorFlow is installed in the following ways:
Virtualenv
Pip
Docker
Anaconda
Source code compilation
Pip is the Python software package management system: Pip Install
Installation Process Reference Blog 1Installation Process Reference Blog 2No GPU acceleration is configured (better GPU to say)Important steps:First, before unloading the versionUninstall the python, Anaconda, etc. that were previously installed separately. The anaconda contains Python. Pay attention to emptying the relevant environment variables;Second, install AnacondaAnaconda chose it because it built Py
Install tf1.0 and tf1.5 in Anaconda environment --- py2.7
@ Wp20181030
Environment: ubuntu18.04, anaconda2. In ubuntu, python2.7.15 (default) and python3.6.5 are installed in advance ,.....
Here, we useAnaconda 2(Install it on your own ).Py2.7 and py3.5Environment,InstallTf1.0 and tf1.5, As follows:
Scenario 1: Install tf1.0 in py2.7.
# (1) create a test_py2 Environment [py2 + tf1.0]Conda create-n # (2) activate the test_py2 environment for later useS
The little woman is not, can not solve in the anaconda environment to compile Caffe, also can not solve in Anaconda environment install TensorFlow, so can only be used with a python, a will use Anaconda
Then, if you modify the file in ~/.BASHRC, that is, add the export path= "/home/myname/anaconda2/bin: $PATH", the inp
Tensorflow creates variables and searches for variables by name. tensorflow Variables
Environment: Ubuntu14.04, tensorflow = 1.4 (bazel source code installation), Anaconda python = 3.6
There are two main methods to declare variables:Tf. VariableAndTf. get_variable, The biggest difference between the two is:
(1) tf. Var
Get ready:System environment: WINDOWS10 + Anaconda3 + pycharm(1) environment configuration:Open Anaconda Prompt, enter the Tsinghua warehouse image, so the update will be faster:Input:Conda config--add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/--set show_channel_ URLs YesAlso in Anaconda Prompt use Anac
Preface
Recently learning TensorFlow, you need to install its environment. Originally intended to install an Ubuntu system for the computer, it was too troublesome to choose to install it in Windows. Because TensorFlow needs more dependent environment, it is time-consuming and laborious to install, and error prone. Search on the internet found the installation of Anaco
"Google" + "deep learning", two tags let the December 2015 Google open-source deep learning tool TensorFlow after its release quickly became the world's hottest open source project, April 2016, open source TensorFlow support distributed features, The application to the production environment is further.The TensorFlow API supports Python 2.7 and Python 3.3+, with
to see the two elder sister situation. If there is an older version of the libcudnn.so inside. The beginning of the file, all deleted, only need to keep the latest libcudnn.so.5.1.3 files can be executed in the following order:# libcudnn.so.5.1 -> libcudnn.so.5.1.3*sudo ln -s libcudnn.so.5.1.3 libcudnn.so.5.1# libcudnn.so -> libcudnn.so.5.1*sudo ln -s libcudnn.so.5.1 libcudnn.so
1
2
3
4
If the error is that a file already exists (libcudnn.so.5.1 or libcudnn.so), then d
Official Installation TutorialsTensorFlow Chinese Community1. Installation environment (multiple versions of Python management)TensorFlow currently supports only 64-bit Python 3.5 under Windows, because it has been using Python 2.7 (Anaconda2) +jupyter notebook, and does not want to switch directly to Python 3.5, So prepare to install two versions of Anaconda. Here is the main introduction to how to manage
What to note: Install TensorFlow on Ubuntu (version python2.7)Note Date: 2018-01-31
Install TensorFlow on Ubuntu (version python2.7)My system environment:
Ubuntu 16.04 LTS
Python 2.7
Python 3.5
Two versions of TensorFlow:The TensorFlow is mainly installed in the following ways:
Virtualenv
Pip
Docker
version again, delete the Anaconda folder, and delete the environment variable.
Conda command does not exist, check environment variables,. bashrc file, last line, generally speaking, may be Anaconda version such as ANACONDA2, ANACONDA3 cause the environment cannot be found. Modify it and you can use it normally.
Installing TensorFlow
Install P
Title:
Anaconda has already installed Pil/pillow and CAPTCHA module still complains
Importerror:no module named ' captchaxxx '
The author has checked a lot of cases before, also saw a lot of solutions, such as: Anaconda can not use PIL, I use pillow alternative
But also can not, and then remembered that I used anaconda installed two times
TensorFlow Learning Notes 4: Distributed TensorFlow
Brief Introduction
The TensorFlow API provides cluster, server, and supervisor to support distributed training of models.
The distributed training introduction about TensorFlow can refer to distributed TensorFlow. A simpl
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.