python包:torch

torch  这个包非常大,安装也非常麻烦。

基本可以上,他是深度学习里面重要的一个包,

要安装torch   首先要确定自己的操作系统, 自己的python 版本, 自己的版本,  是要安装CPU版本的 torch, 还是GPU版本的torch 

 

 

下载:torch-2.1.0+cu121-cp38-cp38-win_amd64.whl

 

然后安装

C:\Windows\system32>
C:\Windows\system32>
C:\Windows\system32>cd..

C:\Windows>cd..

C:\>D:

D:\>cd D:\whl

D:\whl>pip install torch-2.1.0+cu121-cp38-cp38-win_amd64.whl
Processing d:\whl\torch-2.1.0+cu121-cp38-cp38-win_amd64.whl
Collecting filelock
Downloading filelock-3.14.0-py3-none-any.whl (12 kB)
Collecting typing-extensions
Downloading typing_extensions-4.11.0-py3-none-any.whl (34 kB)
Collecting fsspec
Downloading fsspec-2024.3.1-py3-none-any.whl (171 kB)
|████████████████████████████████| 171 kB 22 kB/s
Collecting networkx
Downloading networkx-3.1-py3-none-any.whl (2.1 MB)
|████████████████████████████████| 2.1 MB 160 kB/s
Collecting sympy
Downloading sympy-1.12-py3-none-any.whl (5.7 MB)
|████████████████████████████████| 5.7 MB 1.3 MB/s
Collecting jinja2
Downloading jinja2-3.1.4-py3-none-any.whl (133 kB)
|████████████████████████████████| 133 kB 3.3 MB/s
Collecting MarkupSafe>=2.0
Downloading MarkupSafe-2.1.5-cp38-cp38-win_amd64.whl (17 kB)
Collecting mpmath>=0.19
Downloading mpmath-1.3.0-py3-none-any.whl (536 kB)
|████████████████████████████████| 536 kB 3.3 MB/s
Installing collected packages: mpmath, MarkupSafe, typing-extensions, sympy, networkx, jinja2, fsspec, filelock, torch
Successfully installed MarkupSafe-2.1.5 filelock-3.14.0 fsspec-2024.3.1 jinja2-3.1.4 mpmath-1.3.0 networkx-3.1 sympy-1.12 torch-2.1.0+cu121 typing-extensions-4.11.0
WARNING: You are using pip version 21.1.1; however, version 24.0 is available.
You should consider upgrading via the 'c:\python38\python.exe -m pip install --upgrade pip' command.

D:\whl>pip list
Package Version
----------------- -----------
filelock 3.14.0
fsspec 2024.3.1
jinja2 3.1.4
MarkupSafe 2.1.5
mpmath 1.3.0
networkx 3.1
pip 21.1.1
setuptools 56.0.0
sympy 1.12
torch 2.1.0+cu121
typing-extensions 4.11.0
WARNING: You are using pip version 21.1.1; however, version 24.0 is available.
You should consider upgrading via the 'c:\python38\python.exe -m pip install --upgrade pip' command.

D:\whl>

 

posted @ 2024-04-24 13:16  wenluderen  阅读(280)  评论(2编辑  收藏  举报