PyTorch查看安装版本指令

import torch


print(torch.__version__)

可以新建Python文件输出,也可以终端输入python打开一个python终端后输出,另外:

pip list指令也可以读取当前已安装的相关包的指令,如下图:

(Python3_7_Pytorch) xxxx@xxxx-ubuntu-desktop:~/2024Learn$ pip list
Package                 Version            
----------------------- -------------------
absl-py                 0.9.0              
akshare                 1.10.42            
annotated-types         0.5.0              
anyio                   3.7.1              
asn1crypto              1.3.0              
astor                   0.8.1              
attrs                   19.3.0             
backcall                0.1.0              
beautifulsoup4          4.12.3             
bleach                  3.1.4              
cached-property         1.5.2              
cachetools              4.1.0              
certifi                 2020.4.5.1         
cffi                    1.14.0             
chardet                 3.0.4              
click                   7.1.1              
coverage                5.1                
cryptography            2.8                
cycler                  0.10.0             
d2lzh                   1.0.0              
decorator               4.4.2              
defusedxml              0.6.0              
distro                  1.9.0              
dlib                    19.19.0            
entrypoints             0.3                
et-xmlfile              1.1.0              
exceptiongroup          1.2.0              
face-recognition        1.3.0              
face-recognition-models 0.3.0              
flake8                  3.7.9              
gast                    0.2.2              
google-auth             1.14.1             
google-auth-oauthlib    0.4.1              
google-pasta            0.2.0              
grpcio                  1.28.1             
h11                     0.14.0             
h5py                    2.10.0             
html5lib                1.1                
httpcore                0.17.3             
httpx                   0.24.1             
idna                    2.9                
importlib-metadata      1.5.0              
ipykernel               5.1.4              
ipython                 7.13.0             
ipython-genutils        0.2.0              
ipywidgets              7.5.1              
jedi                    0.17.0             
Jinja2                  2.11.2             
json5                   0.9.4              
jsonpatch               1.33               
jsonpath                0.82.2             
jsonpointer             2.4                
jsonschema              3.2.0              
jupyter                 1.0.0              
jupyter-client          6.1.2              
jupyter-console         6.1.0              
jupyter-core            4.6.3              
jupyterlab              1.2.6              
jupyterlab-server       1.1.0              
Keras-Applications      1.0.8              
Keras-Preprocessing     1.1.0              
kiwisolver              1.2.0              
lxml                    5.1.0              
Markdown                3.2.1              
MarkupSafe              1.1.1              
matplotlib              3.2.1              
mccabe                  0.6.1              
mistune                 0.8.4              
mkl-fft                 1.0.15             
mkl-random              1.1.0              
mkl-service             2.3.0              
mock                    4.0.2              
nbconvert               5.6.1              
nbformat                5.0.4              
networkx                2.6.3              
nose                    1.3.7              
notebook                6.0.3              
numpy                   1.18.1             
oauthlib                3.1.0              
olefile                 0.46               
openai                  1.9.0              
opencv-contrib-python   4.2.0.34           
opencv-python           4.2.0.34           
openpyxl                3.1.2              
opt-einsum              3.2.1              
pandas                  1.0.3              
pandocfilters           1.4.2              
parso                   0.7.0              
pexpect                 4.8.0              
pickleshare             0.7.5              
Pillow                  7.0.0              
pip                     20.0.2             
pip-conflict-checker    0.6.0              
poai                    0.0.10             
porobot                 0.0.3              
prometheus-client       0.7.1              
prompt-toolkit          3.0.4              
protobuf                3.11.3             
ptyprocess              0.6.0              
py-mini-racer           0.6.0              
pyasn1                  0.4.8              
pyasn1-modules          0.2.8              
pycodestyle             2.5.0              
pycparser               2.20               
pydantic                2.5.3              
pydantic-core           2.14.6             
pyflakes                2.1.1              
Pygments                2.6.1              
PyOfficeRobot           0.1.18             
pyOpenSSL               19.1.0             
pyparsing               2.4.7              
pypinyin                0.50.0             
pyrsistent              0.16.0             
PySide6                 6.2.4              
PySocks                 1.7.1              
python-dateutil         2.8.1              
pytz                    2019.3             
pyzmq                   18.1.1             
qtconsole               4.7.2              
QtPy                    1.9.0              
requests                2.23.0             
requests-oauthlib       1.3.0              
rsa                     4.0                
schedule                1.2.1              
scipy                   1.4.1              
Send2Trash              1.5.0              
sentencepiece           0.1.86             
setuptools              46.1.3.post20200330
shiboken6               6.2.4              
six                     1.14.0             
sniffio                 1.3.0              
soupsieve               2.4.1              
tabulate                0.9.0              
tencentcloud-sdk-python 3.0.1081           
tensorboard             2.1.1              
tensorflow-estimator    2.1.0              
tensorflow-gpu          2.1.0              
termcolor               1.1.0              
terminado               0.8.3              
testpath                0.4.4              
torch                   1.4.0              
torchsummary            1.5.1              
torchtext               0.6.0              
torchvision             0.5.0              
tornado                 6.0.4              
tqdm                    4.45.0             
traitlets               4.3.3              
typing-extensions       4.7.1              
urllib3                 1.25.9             
visdom                  0.2.4              
wcwidth                 0.1.9              
webencodings            0.5.1              
websocket-client        1.6.1              
Werkzeug                1.0.1              
wheel                   0.34.2             
widgetsnbextension      3.5.1              
wrapt                   1.12.1             
xlrd                    1.2.0              
xlwt                    1.3.0              
zipp                    3.1.0 

  • 3
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值