一些常用的版本查询方式

一些常用的版本查询方式,第1张

Cuda版本查询
nvcc --version

自己的版本:

(base) xiaochen@duanjz:~$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2020 NVIDIA Corporation
Built on Tue_Sep_15_19:10:02_PDT_2020
Cuda compilation tools, release 11.1, V11.1.74
Build cuda_11.1.TC455_06.29069683_0
cudnn版本查询
dpkg -l | grep cudnn

自己的版本:

(base) xiaochen@duanjz:~$ dpkg -l | grep cudnn
ii  libcudnn8                                  8.2.0.53-1+cuda11.3                              amd64        cuDNN runtime libraries
ii  libcudnn8-dev                              8.2.0.53-1+cuda11.3                              amd64        cuDNN development libraries and headers
ii  libcudnn8-samples                          8.2.0.53-1+cuda11.3                              amd64        cuDNN documents and samples
tensorflow版本查询
import tensorflow as tf
tf.__version__

自己的版本:

#环境tensorflow
Python 3.7.11 (default, Jul 27 2021, 14:32:16)
[GCC 7.5.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
>>> tf.__version__
'2.8.0'
>>>

#环境tensorflow-V1
Python 3.7.13 (default, Mar 29 2022, 02:18:16) 
[GCC 7.5.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
>>> tf.__version__
'1.14.0'
>>> 
pytorch版本查询
import torch
torch.__version__

自己的版本:

Python 3.7.10 (default, Feb 26 2021, 18:47:35)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> torch.__version__
'1.8.1'
>>>
numpy版本查询
pip show numpy

自己的版本

#环境tensorflow(tensorflow2.8.0)下的numpy版本
Name: numpy
Version: 1.21.5
Summary: NumPy is the fundamental package for array computing with Python.
Home-page: https://www.numpy.org
Author: Travis E. Oliphant et al.
Author-email:
License: BSD
Location: /home/xiaochen/anaconda3/envs/tensorflow/lib/python3.7/site-packages
Requires:
Required-by: tifffile, tensorflow, tensorboard, scipy, scikit-learn, scikit-image, PyWavelets, opt-einsum, matplotlib, Keras-Preprocessing, imageio, h5py

#环境tensorflow-V1(tensorflow1.14.0)下的numpy版本
Name: numpy
Version: 1.16.0
Summary: NumPy is the fundamental package for array computing with Python.
Home-page: https://www.numpy.org
Author: Travis E. Oliphant et al.
Author-email: 
License: BSD
Location: /home/xiaochen/anaconda3/envs/tensorflow-V1/lib/python3.7/site-packages
Requires: 
Required-by: tensorflow-gpu, tensorboard, Keras-Preprocessing, Keras-Applications, h5py

#环境pytorch下的numpy版本
Name: numpy
Version: 1.20.1
Summary: NumPy is the fundamental package for array computing with Python.
Home-page: https://www.numpy.org
Author: Travis E. Oliphant et al.
Author-email: None
License: BSD
Location: /home/xiaochen/anaconda3/envs/pytorch/lib/python3.7/site-packages
Requires:
Required-by: torchvision, torch, scipy, mkl-random, mkl-fft, matplotlib, h5py

欢迎分享,转载请注明来源:内存溢出

原文地址: http://www.outofmemory.cn/langs/571560.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-04-09
下一篇 2022-04-09

发表评论

登录后才能评论

评论列表(0条)

保存