Installing TensorFlow on Ubuntu or Windows
2017-05-24 15:59
513 查看
Installing TensorFlow on Ubuntu
显卡驱动:http://developer2.download.nvidia.com/compute/cuda/8.0/secure/Prod2/local_installers/cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64.deb?VVYITDEdoFrSfUxTepkU7DGifVqtPoiUYZrB4POIJ5p1yYDlClhIj497jSa4Q9IqIM_AxmVTMUzRhXC27wBT7Jc1ibbkbReyVsNYsgOkQL6CdVM8ge0GIk5gEj8fXCOPvaVXND-G9qf_VWHEP4kcrglzslCS2n3O_9HvsJxYT7Id6gy_NZo_YSYTQM22K66J3QrnK7K8wQmA0jA9H2JSpujxHALinux x64 (AMD64/EM64T) Display Driver
Version: | 384.69 |
Release Date: | 2017.8.22 |
Operating System: | Linux 64-bit |
Language: | English (US) |
File Size: | 77.06 MB |
tensorflow52 win10 vs2015 编译 tensorflow1.2.0-rc0(支持GPU)
经典网络的 TensorFlow 实现资源汇总
tf-slim-mnist
https://www.tensorflow.org/install/
to install TensorFlow.
To install TensorFlow, start a terminal. Then issue the appropriate pip3 install command in that terminal. To install the CPU-only version of TensorFlow, enter the following command:
C:\> pip3 install --upgrade tensorflow
To install the GPU version of TensorFlow, enter the following command:
C:\> pip3 install --upgrade tensorflow-gpu
Installing with Anaconda
The Anaconda installation is community supported, not officially supported.Take the following steps to install TensorFlow in an Anaconda environment:
Follow the instructions on the Anaconda download site to download and install Anaconda.
Create a conda environment named tensorflow by invoking the following command:
C:> conda create -n tensorflow
Activate the conda environment by issuing the following command:
C:> activate tensorflow (tensorflow)C:> # Your prompt should change
Issue the appropriate command to install TensorFlow inside your conda environment. To install the CPU-only version of TensorFlow, enter the following command:
(tensorflow)C:> pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.1.0-cp35-cp35m-win_amd64.whl
To install the GPU version of TensorFlow, enter the following command (on a single line):
(tensorflow)C:> pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-1.1.0-cp35-cp35m-win_amd64.whl
Validate your installation
Start a terminal.If you installed through Anaconda, activate your Anaconda environment.
Invoke python from your shell as follows:
$ python
Enter the following short program inside the python interactive shell:
>>> import tensorflow as tf >>> hello = tf.constant('Hello, TensorFlow!') >>> sess = tf.Session() >>> print(sess.run(hello))
If the system outputs the following, then you are ready to begin writing TensorFlow programs:
Hello, TensorFlow!
If you are new to TensorFlow, see Getting Started with TensorFlow.
If the system outputs an error message instead of a greeting, see Common installation problems.
Common installation problems
We are relying on Stack Overflow to document TensorFlow installation problems and their remedies. The following table contains links to Stack Overflow answers for some common installation problems. If you encounter an error message or other installation problem not listed in the following table, search for it on Stack Overflow. If Stack Overflow doesn't show the error message, ask a new question about it on Stack Overflow and specify thetensorflowtag.
Stack Overflow Link | Error Message |
---|---|
41007279 | [...\stream_executor\dso_loader.cc] Couldn't open CUDA library nvcuda.dll |
41007279 | [...\stream_executor\cuda\cuda_dnn.cc] Unable to load cuDNN DSO |
42006320 | ImportError: Traceback (most recent call last): File "...\tensorflow\core\framework\graph_pb2.py", line 6, in from google.protobuf import descriptor as _descriptor ImportError: cannot import name 'descriptor' |
42011070 | No module named "pywrap_tensorflow" |
42217532 | OpKernel ('op: "BestSplits" device_type: "CPU"') for unknown op: BestSplits |
43134753 | The TensorFlow library wasn't compiled to use SSE instructions |
上次更新日期:四月 26, 2017
相关文章推荐
- Installing TensorFlow on Ubuntu -转载
- Installing TensorFlow on Ubuntu 1.3
- Installing TensorFlow on Windows
- CUDA 7.5 & cuDNN v4 & tensorflow on Ubuntu 14.04 LTS
- <转>雅虎开源TensorflowOnSpark,Ubuntu配置安装TensorflowOnSpark
- Ubuntu/Vistadual-boot(reference the the steps of installing Windows Vista on a computer which already have an Ubuntu installatio
- Installing Reporting Services on Windows 7, Vista or Windows Server 2008 无权限(rsAccessDenied)解决方法
- Installing VMWare Workstation 7 on Windows Server 2008 R2 – “Error: This product can only be installed on Windows XP or later.”
- Install TensorFlow on windows
- Tensorflow learning 1 -- Installation without GPU on ubuntu 16.04
- A Newbie’s Install of Keras & Tensorflow on Windows 10 with R
- Installing or upgrading on Debian or Ubuntu
- 雅虎开源TensorflowOnSpark,Ubuntu配置安装TensorflowOnSpark
- 雅虎开源TensorflowOnSpark,Ubuntu配置安装TensorflowOnSpark
- Ubuntu:Installing TensorFlow from Sources(CPU Only)
- installing-git-on-a-server-ubuntu-or-debian
- Install Robot Framework on Linux Fedora20 or ubuntu /on Mac /on windows
- Installing Git on a server (Ubuntu or Debian)
- anaconda2下面安装opencv2.4.13.4完成----解决默认安装的问题----Thefunction is not implemented. Rebuild the library with Windows, GTK+ 2.x orCarbon support. If you are on Ubuntu or Debian, install libgtk2.0‑dev and pkg
- How to setup Tensorflow inception-v3 model on Windows