您的位置:首页 > 编程语言 > Python开发

Tensorflow 安装制定版本和查看tensorflow版本,python版本,查看cuda版本

2017-08-04 08:32 561 查看
安装 tensorflow 1.0.0 的命令是 pip install –upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.0.0-cp27-none-linux_x86_64.whl
 

在网上查的时候找到后面的网址是关键,这里有个网址 里面有很多tensorflow 版本的链接

https://github.com/tensorflow/tensorflow/pull/8212/files

 

查看python的版本 python –-version

查看tensorflow 的版本

python -c
'import tensorflow as tf; print(tf.__version__)'# for Python 2

python3 -c
'import tensorflow as tf; print(tf.__version__)'# for Python 3

(注意 这里有时候 复制到 word 里面在复制回去有时候会报错,自己打一下就ok,word 有时候会让文字带上格式啥的,自己注意下)

 

查看cuda 版本

As Jared mentions in a comment, from the command line:

nvcc --version


gives the CUDA compiler version (which matches the toolkit version).
From application code, you can query the runtime API version with

cudaRuntimeGetVersion()


or the driver API version with

cudaDriverGetVersion()


As Daniel points out, deviceQuery is an SDK sample app that queries the above, along with device capabilities.
引用自 https://stackoverflow.com/questions/9727688/how-to-get-the-cuda-version
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: